Summary: netintf.c gcc warnings in net_lookup_service
                 Project: Freeciv
            Submitted by: nixeagle
            Submitted on: Friday 09/03/2010 at 20:48
                Category: general
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: r17914
         Discussion Lock: Any
        Operating System: Microsoft Windows
         Planned Release: 



This bug is largely a copy paste of bug #16614 excluding all irrelevant parts
to the gcc warnings.

Configured with: 
 : ./autogen.sh --disable-make-data --disable-nls --enable debug=yes 
 : make

 - gcc (GCC) 4.3.4 20090804 (release) 1 
 - Cygwin 
 - Windows XP SP2, (cygwin/bash has OS=Windows_NT) (intel 32bit) 
 - automake (GNU automake) 1.8.5 
 - autoconf (GNU Autoconf) 2.65 
 - autoheader (GNU Autoconf) 2.65 
 - aclocal (GNU automake) 1.8.5 
 - GNU Make 3.81 
 - libtoolize (GNU libtool 1.3140 2009-12-30) 2.2.7a 

After taking a while to figure windows/cygwin/various deps and autotools
issues out (I'm new to the first two, on a netbook at the moment), please be
advised that I had to run export CFLAGS='\-Wall -Wpointer-arith -Wcast-align
-g -O2' to tell gcc to treat errors as only warnings. Turning --enable-debug
(I'm planning on hacking on this thing after all!) on seems to also turn on
-Werror which causes the build to fail on utils/netinit.c. I could not locate
the human generated source of it, but I did come across FC_CFLAGS in config.h
with -Werror set.

 : netintf.c: In function ‘net_lookup_service’: 
 : netintf.c:333: warning: implicit declaration of function
 : netintf.c:333: warning: assignment makes pointer from integer without a
 : netintf.c:352: warning: assignment makes pointer from integer without a

Please let me know if more information is required.


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to