Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shadowm@nanacore:~/src/wesnoth% g++-4.9 -o test.o -c -std=c++98 -pthread -W -Wall -Werror -Wno-unused-local-typedefs -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBDBUS -DHAVE_LIBPNG -DHAVE_HISTORY -DHAVE_CONFIG_H -D_X11 -Ibuild -Isrc -I/usr/include/SDL -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/fribidi src/scripting/game_lua_kernel.cpp -O2
- src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- const t_side_result default_result = t_side_result(
- ^
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- cc1plus: all warnings being treated as errors
- shadowm@nanacore:~/src/wesnoth% g++-4.9 -o test.o -c -std=c++98 -pthread -W -Wall -Werror -Wno-unused-local-typedefs -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBDBUS -DHAVE_LIBPNG -DHAVE_HISTORY -DHAVE_CONFIG_H -D_X11 -Ibuild -Isrc -I/usr/include/SDL -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/fribidi src/scripting/game_lua_kernel.cpp -O3
- src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- const t_side_result default_result = t_side_result(
- ^
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- cc1plus: all warnings being treated as errors
- shadowm@nanacore:~/src/wesnoth% g++-4.9 -o test.o -c -std=c++98 -pthread -W -Wall -Werror -Wno-unused-local-typedefs -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBDBUS -DHAVE_LIBPNG -DHAVE_HISTORY -DHAVE_CONFIG_H -D_X11 -Ibuild -Isrc -I/usr/include/SDL -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/fribidi src/scripting/game_lua_kernel.cpp -O1
- src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
- src/scripting/game_lua_kernel.cpp:1716:33: error: ‘*((void*)& result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- t.set_carryover_add(add.get());
- ^
- In file included from src/game_board.hpp:21:0,
- from src/scripting/game_lua_kernel.cpp:46:
- src/team.hpp:344:79: error: ‘*((void*)& result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- void set_carryover_percentage(int value) { info_.carryover_percentage = value; }
- ^
- src/scripting/game_lua_kernel.cpp:1693:23: note: ‘*((void*)& result +12)’ was declared here
- const t_side_result result = side_results[i];
- ^
- src/scripting/game_lua_kernel.cpp:1710:37: error: ‘*((void*)& result +5)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- t.set_carryover_bonus(bonus.get());
- ^
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- const t_side_result default_result = t_side_result(
- ^
- src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
- cc1plus: all warnings being treated as errors
- shadowm@nanacore:~/src/wesnoth% g++-4.9 -o test.o -c -std=c++98 -pthread -W -Wall -Werror -Wno-unused-local-typedefs -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_LIBDBUS -DHAVE_LIBPNG -DHAVE_HISTORY -DHAVE_CONFIG_H -D_X11 -Ibuild -Isrc -I/usr/include/SDL -I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/fribidi src/scripting/game_lua_kernel.cpp -O0
Advertisement
Add Comment
Please, Sign In to add comment