shadowm

Untitled

Apr 6th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. 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
  2. src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
  3. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  4. const t_side_result default_result = t_side_result(
  5. ^
  6. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  7. cc1plus: all warnings being treated as errors
  8. 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
  9. src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
  10. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  11. const t_side_result default_result = t_side_result(
  12. ^
  13. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  14. cc1plus: all warnings being treated as errors
  15. 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
  16. src/scripting/game_lua_kernel.cpp: In member function ‘int game_lua_kernel::intf_end_level(lua_State*)’:
  17. src/scripting/game_lua_kernel.cpp:1716:33: error: ‘*((void*)& result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  18. t.set_carryover_add(add.get());
  19. ^
  20. In file included from src/game_board.hpp:21:0,
  21. from src/scripting/game_lua_kernel.cpp:46:
  22. src/team.hpp:344:79: error: ‘*((void*)& result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  23. void set_carryover_percentage(int value) { info_.carryover_percentage = value; }
  24. ^
  25. src/scripting/game_lua_kernel.cpp:1693:23: note: ‘*((void*)& result +12)’ was declared here
  26. const t_side_result result = side_results[i];
  27. ^
  28. src/scripting/game_lua_kernel.cpp:1710:37: error: ‘*((void*)& result +5)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  29. t.set_carryover_bonus(bonus.get());
  30. ^
  31. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +17)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  32. const t_side_result default_result = t_side_result(
  33. ^
  34. src/scripting/game_lua_kernel.cpp:1651:22: error: ‘*((void*)& default_result +12)’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  35. cc1plus: all warnings being treated as errors
  36. 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