Bug#528587: FTBFS with GCC 4.4: ... may be used uninitialized

Martin Michlmayr tbm at cyrius.com
Wed May 13 21:31:43 UTC 2009


Package: wesnoth
Version: 1:1.6.2-1
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.4

Your package fails to build with GCC 4.4.  You can reproduce this problem
with gcc-4.4/g++-4.4 from unstable.

> Automatic build of wesnoth_1:1.6.2-1 on em64t by sbuild/amd64 0.53
...
> 	x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..   -I/usr/include -D_REENTRANT -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12     -DHAVE_REVISION -I../intl -I../intl -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DWESNOTH_PATH=\"/usr/share/games/wesnoth\" -DLOCALEDIR=\"/usr/share/locale\" -DHAS_RELATIVE_LOCALEDIR=0 -DFIFODIR=\"/var/run/wesnothd\" -DWESNOTH_PREFIX=\"/usr\" -DHAVE_FRIBIDI -I/usr/include -O2 -W -Wall -ansi -g -O2 -Werror -Wno-unused -Wno-sign-compare -DDISABLE_POOL_ALLOC -D_X11     -I/usr/include -MT game_preferences.o -MD -MP -MF $depbase.Tpo -c -o game_preferences.o game_preferences.cpp &&\
> 	mv -f $depbase.Tpo $depbase.Po
> cc1plus: warnings being treated as errors
> game_preferences.cpp: In constructor 'preferences::manager::manager()':
> game_preferences.cpp:66: error: 'v.std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<anonymous>.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_impl.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_Vector_impl::_M_start' may be used uninitialized in this function
> game_preferences.cpp:66: error: 'v.std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::<anonymous>.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_M_impl.std::_Vector_base<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::_Vector_impl::_M_finish' may be used uninitialized in this function
> game_preferences.cpp:70: error: 'terrain.std::vector<t_translation::t_terrain, std::allocator<t_translation::t_terrain> >::<anonymous>.std::_Vector_base<t_translation::t_terrain, std::allocator<t_translation::t_terrain> >::_M_impl.std::_Vector_base<t_translation::t_terrain, std::allocator<t_translation::t_terrain> >::_Vector_impl::_M_start' may be used uninitialized in this function
> make[3]: *** [game_preferences.o] Error 1
> make[3]: Leaving directory `/build/tbm/wesnoth-1.6.2/src'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/build/tbm/wesnoth-1.6.2'

-- 
Martin Michlmayr
http://www.cyrius.com/





More information about the Pkg-games-devel mailing list