GNOME Bugzilla – Bug 655995
FTBFS -Werror=unused-but-set-variable in submarine.c
Last modified: 2011-08-13 22:08:22 UTC
Created attachment 193273 [details] buildlog gcompris 9.6.1 fails to build from source on my Ubuntu development computer. gcompris builds with -Werror so all warnings are treated as errors as far as I understand it. Here's the relevant part of the attached buildlog: CC submarine.lo submarine.c: In function 'submarine_create_item': submarine.c:469:13: error: variable 'h' set but not used [-Werror=unused-but-set-variable] submarine.c:469:10: error: variable 'w' set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
I believe unused-but-set-variable didn't use to appear in older releases, but it does now so this is preventing a newer version of gcompris from getting into Ubuntu 11.10.
*older releases of gcc
Fixed in head commit e6453013fc33eeb3fe1c75b3db52ea0fc756357c http://git.gnome.org/browse/gcompris/commit/?id=e6453013fc33eeb3fe1c75b3db52ea0fc756357c This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.