<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40258 >

Jason Dorje Short wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=40258 >
> 
> I heard a rumor that freeciv (S2_1) didn't compile with gcc 4.3.  So I 
> installed it and tried it.  I found only one error in the default 
> compilation, fixed by this simple patch.  This surely applies to 2.2 and 
> trunk as well.

[EMAIL PROTECTED]:~/src/freeciv/freeciv-2.1$ gcc --version
gcc-4.3 (Debian 4.3.0-5) 4.3.1 20080523 (prerelease)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


cc1: warnings being treated as errors
cityrepdata.c: In function ‘split_string’:
../utility/specvec.h:126: error: ‘d.numeric_value’ may be used 
uninitialized in this function
cityrepdata.c:747: note: ‘d.numeric_value’ was declared here
cityrepdata.c:729: error: ‘d.string_value’ may be used uninitialized in 
this function
cityrepdata.c:729: error: ‘d.numeric_value’ may be used uninitialized in 
this function


A bizarre and completely harmless warning as the numeric_value value is 
not, in fact, being used.  But whatever.


-jason



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

Reply via email to