/home/walter/src/fvwm/libs
make[2]: Entering directory `/home/walter/src/fvwm/libs'
gcc -DHAVE_CONFIG_H -I. -I.. -I..  -I/usr/include -I/usr/include/freetype2      
-I/usr/include/librsvg-2 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo
-I/usr/include/freetype2 -I/usr/include/libpng12       -Wall -Wno-implicit-int 
-g -O2   -MT PictureGraphics.o -MD -MP -MF
.deps/PictureGraphics.Tpo -c -o PictureGraphics.o PictureGraphics.c
PictureGraphics.c: In function ‘PGraphicsCreateTransparency’:
PictureGraphics.c:1240: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
PictureGraphics.c:1240: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
PictureGraphics.c:1242: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
PictureGraphics.c:1242: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
mv -f .deps/PictureGraphics.Tpo .deps/PictureGraphics.Po


 gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr 
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib 
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.2.1 --enable-ssp --disable-libssp 
--disable-libgcj --with-slibdir=/lib --with-system-zlib
--enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new 
--disable-libstdcxx-pch --program-suffix=-4.2
--enable-version-specific-runtime-libs --without-system-libunwind 
--with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.2.1 (SUSE Linux)

You may like to read this why -Wall does not automaticly show this:
http://blog.worldofcoding.com/2010/02/solving-gcc-44-strict-aliasing-problems.html

The whole point of fixing things is that i may cause subtil errors.

re,
 wh


Am 09.02.2014 23:00, schrieb Dan Espen:
> walter harms <[email protected]> writes:
> 
>> hi List,
>> i got some warnings about "strict anti-aliasing". It was easy to fix and 
>> should not
>> break other things.
>>
>> --- Colorset.c~ 2008-02-05 22:04:47.000000000 +0100
>> +++ Colorset.c  2013-12-22 21:54:48.000000000 +0100
>> @@ -233,12 +233,13 @@
>>  {
>>         Pixmap pixmap = None;
>>         Pixmap mask = None;
>> -       XID junk;
>> +       int junk;
>> +       XID root;
> 
> Hi,
> 
> How did you get the warning?  I don't get one with "-Wall -Werror".
> 
> I like clean looking compiles, but this one actually adds
> 4 unnecessary bytes to the stack.  I know that's very minor
> but it goes against my grain.  I'm guessing this could be
> fixed with a union too which would eliminate the 4 bytes.
> But I hesitate to do anything without seeing the messages first.
> 

Reply via email to