Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
freeglut-2.4.0 builds with -Werror, causing it to fail when building with GCC 4.2 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -O2 -march=nocona -fomit-frame-pointer -pipe -fno-ident -g -Wall -pedantic -Werror -c freeglut_menu.c -MT libglut_la-freeglut_menu.lo -MD -MP -MF .deps/libglut_la-freeglut_menu.TPlo -fPIC -DPIC -o .libs/libglut_la-freeglut_menu.lo cc1: warnings being treated as errors freeglut_joystick.c: In function 'fgJoystickDetect': freeglut_joystick.c:1687: warning: the address of 'fgJoystick', will always evaluate as 'true' make[2]: *** [libglut_la-freeglut_joystick.lo] Error 1 attached is a patch to prevent this and other warnings from causing unnecessary build failures.
Created an attachment (id=85893) [edit] freeglut-2.4.0-warnings-arent-errors.patch
I'd rather fix the code than dropping Werror. It'd probably take very little effort.
Upping to critical since we're already on 4.1, 4.2 isn't too far off.
4.2 hasn't branched yet, and the final won't be released til ~3 months after that, so we have some time yet. ;)
Created an attachment (id=92754) [edit] freeglut-gcc42.patch Don't check the pointer of a statically allocated structure.
Ryan, give that patch a try if you have a chance.
looks good. (ebuild needs a cd ${S} in src_unpack to use as-is.)
Committed to CVS, thanks for testing.