URL:
  <http://gna.org/bugs/?13355>

                 Summary: game.cpp:1289: warning: 'res' may be used
uninitialized in this function
                 Project: Battle for Wesnoth
            Submitted by: ryandesign
            Submitted on: Friday 04/10/2009 at 13:06
                Category: Bug
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6
        Operating System: Mac OS X 10.4.1

    _______________________________________________________

Details:

Wesnoth can be installed using MacPorts. Currently it has version 1.4.7 and
it installs fine. I am trying to update the port to version 1.6. I am getting
this error:


/usr/bin/g++-4.0 -DHAVE_CONFIG_H -I. -I..   -I/usr/X11R6/include
-I/opt/local/include -I/usr/include -I/opt/local/include/pango-1.0
-I/opt/local/include/cairo -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng12   -I/opt/local/include   -DHAVE_REVISION
-I../intl -I../intl -I/opt/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
-DWESNOTH_PATH=\"/opt/local/share/wesnoth\" -DLOCALEDIR=\"translations\"
-DHAS_RELATIVE_LOCALEDIR=1 -DFIFODIR=\"/opt/local/var/run/wesnothd\"
-DWESNOTH_PREFIX=\"/opt/local\" -DHAVE_FRIBIDI -I/opt/local/include -O2 -W
-Wall -ansi -O2 -Werror -Wno-unused -Wno-sign-compare -DDISABLE_POOL_ALLOC
-D_X11  -I/usr/X11R6/include    -I/opt/local/include -MT game.o -MD -MP -MF
$depbase.Tpo -c -o game.o game.cpp &&\
mv -f $depbase.Tpo $depbase.Po
cc1plus: warnings being treated as errors
game.cpp: In member function
'bool<unnamed>::game_controller::play_multiplayer()':
game.cpp:1289: warning: 'res' may be used uninitialized in this function
make[2]: *** [game.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


Looking through the code in question, I'm not sure I understand why the
compiler thinks this variable may be used uninitialized.

Should I suppress this message by deleting "-Werror" from the configure
script (which allows it to build) or is this a real error that should be
fixed?






    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?13355>

_______________________________________________
  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