Follow-up Comment #9, patch #1100 (project wesnoth):

This patch broke trunk after applied. I'll refer you to the compiler messages
I got - I added a bit from compiling a different file because your
modifications on game_display.hpp propagated warnings everywhere:

++
/usr/bin/ccache g++ -o build/debug/formula_function.o -c -I/usr/include -W
-Wall -Wno-unused -Wno-sign-compare -ansi -O0 -DDEBUG -ggdb3 -DHAVE_CONFIG_H
-DUSE_EDITOR2 -D_X11 -I/usr/include/SDL -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.5
-Isrc -I. build/debug/formula_function.cpp
In file included from build/debug/unit_frame.hpp:28,
                 from build/debug/unit_animation.hpp:21,
                 from build/debug/unit_types.hpp:18,
                 from build/debug/unit.hpp:27,
                 from build/debug/callable_objects.hpp:23,
                 from build/debug/formula_function.cpp:22:
build/debug/game_display.hpp: In constructor
‘game_display::overlay::overlay(const std::string&, const std::string&,
int, const std::string&)’:
build/debug/game_display.hpp:289: warning:
‘game_display::overlay::halo_handle’ will be initialized after
build/debug/game_display.hpp:288: warning:   ‘std::string
game_display::overlay::team_name’
build/debug/game_display.hpp:284: warning:   when initialized here
/usr/bin/ccache g++ -o build/debug/game_display.o -c -I/usr/include -W -Wall
-Wno-unused -Wno-sign-compare -ansi -O0 -DDEBUG -ggdb3 -DHAVE_CONFIG_H
-DUSE_EDITOR2 -D_X11 -I/usr/include/SDL -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.5
-Isrc -I. build/debug/game_display.cpp
In file included from build/debug/unit_frame.hpp:28,
                 from build/debug/unit_animation.hpp:21,
                 from build/debug/unit_types.hpp:18,
                 from build/debug/unit.hpp:27,
                 from build/debug/actions.hpp:37,
                 from build/debug/game_display.cpp:21:
build/debug/game_display.hpp: In constructor
‘game_display::overlay::overlay(const std::string&, const std::string&,
int, const std::string&)’:
build/debug/game_display.hpp:289: warning:
‘game_display::overlay::halo_handle’ will be initialized after
build/debug/game_display.hpp:288: warning:   ‘std::string
game_display::overlay::team_name’
build/debug/game_display.hpp:284: warning:   when initialized here
build/debug/game_display.cpp: In member function ‘virtual void
game_display::draw_hex(const gamemap::location&)’:
build/debug/game_display.cpp:343: error: expected `;' before ‘{’ token
scons: *** [build/debug/game_display.o] Error 1
scons: building terminated because of errors.
--

So, it has syntax errors, and incorrect construction order in a struct's
constructor.

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1100>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to