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

                 Summary: netintf.c:312: warning: 'hp' may be used
uninitialized in this function
                 Project: Freeciv
            Submitted by: doctorjlowe
            Submitted on: Mon 16 May 2011 05:50:48 PM GMT
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.2.5
         Discussion Lock: Any
        Operating System: Mac OS
         Planned Release: 

    _______________________________________________________

Details:

When "--enable-debug" is on, some users of my package are seeing this:

/bin/sh ../libtool --preserve-dup-deps --tag=CC   --mode=compile gcc
-DHAVE_CONFIG_H -I. -I..   -I/sw/include -DLOCALEDIR="\"/sw/share/locale\""
-DDEFAULT_DATA_PATH="\".:data:~/.freeciv:/sw/share/freeciv\""  -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -g -O2 -c -o netintf.lo netintf.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/sw/include
-DLOCALEDIR=\"/sw/share/locale\"
"-DDEFAULT_DATA_PATH=\".:data:~/.freeciv:/sw/share/freeciv\"" -Wall
-Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations
-Werror -g -O2 -c netintf.c -o netintf.o
cc1: warnings being treated as errors
netintf.c: In function 'net_lookup_service':
netintf.c:312: warning: 'hp' may be used uninitialized in this function
make[4]: *** [netintf.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I've turned off the debug flag in my package, but i never saw the warning on
OS 10.6.  The failure above came from OS 10.5.




    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to