On Fri, Mar 10, 2006 at 06:23:32AM +0000, Martin Michlmayr wrote: > Package: pdp > Version: 1:0.12.4-4.1 > Severity: important > > Your package fails to build with G++ 4.1. I'm filing this bug as > important for now, but when 4.1 will be the default compiler in > unstable (probably in a few weeks) I'll upgrade this to serious. > > > > Automatic build of pdp_1:0.12.4-4.1 on bigsur by sbuild/mips 1.80 > ... > > cc -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W > > -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -g > > -I/usr/include -I../../include -I../include -I/usr/X11R6/include -o > > pdp_texture.o -c pdp_texture.c > > cc1: warnings being treated as errors > > pdp_texture.c: In function '_pdp_tex_info': > > pdp_texture.c:56: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > pdp_texture.c: In function '_pdp_tex_clone': > > pdp_texture.c:281: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > pdp_texture.c: In function '_pdp_tex_cleanup': > > pdp_texture.c:316: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > pdp_texture.c: In function '_pdp_packet_gentexture': > > pdp_texture.c:390: warning: dereferencing type-punned pointer will break > > strict-aliasing rules > > make[3]: *** [pdp_texture.o] Error 1 > > BTW, you get the same warning in a number of other files.
note that the build fails because -Werror is passed to gcc. you could avoid those by also using -Wno-strict-aliasing in the CFLAGS. patching the code would obviously be better, but the lines that causes that warning that I've checked are not dangerous, and are false posistives afaict, since those are : (type *)&foo->bar with type beeing a structural type. -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
signature.asc
Description: Digital signature

