[Freeciv-Dev] [bug #22602] Compilation warning in helpdata.c

2014-09-14 Thread Christian Knoke
Follow-up Comment #7, bug #22602 (project freeciv):

gcc --version
gcc (Debian 4.4.5-8) 4.4.5
make clean
LANG=C make -j 4 -k 2>errors.log
cc1: warnings being treated as errors
helpdata.c: In function 'boot_help_texts':
helpdata.c:1718: error: 'natural' may be used uninitialized in this function
At top level:
cc1: error: unrecognized command line option "-Wno-tautological-compare"
make[3]: *** [helpdata.lo] Error 1
make[3]: Target `all-am' not remade because of errors.
make[2]: *** [all-recursive] Error 1
make[2]: Target `all' not remade because of errors.
cc1: warnings being treated as errors
../client/helpdata.c: In function 'boot_help_texts':
../client/helpdata.c:1718: error: 'natural' may be used uninitialized in this
function
../client/helpdata.c: At top level:
../client/helpdata.c:4272: fatal error: opening dependency file
.deps/../client/helpdata.Tpo: No such file or directory
compilation terminated.
make[2]: *** [../client/helpdata.lo] Error 1
make[2]: Target `all' not remade because of errors.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

hth


___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


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


[Freeciv-Dev] [bug #22602] Compilation warning in helpdata.c

2014-09-14 Thread Jacob Nevins
Follow-up Comment #5, bug #22602 (project freeciv):

> Please upgrade compiler to 4.6.X at least and warnings will go 
> away.
If we're going to have a minimum GCC version that we support with
--enable-debug, we should probably document it in INSTALL or similar.

Perhaps "configure" could detect old GCC and disable -Werror with
--enable-debug if detected?
Otherwise old GCC users can't use --enable-debug, which we recommend as a
diagnostic sometimes.

___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #22602] Compilation warning in helpdata.c

2014-09-09 Thread Marko Lindqvist
Follow-up Comment #1, bug #22602 (project freeciv):

Version of gcc?

I'm not sure it's always worth it to work around the false positive warnings
spit out by older gcc versions when newer gcc already diagnose the situation
correctly and does not warn.

___

Reply to this item at:

  

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


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


[Freeciv-Dev] [bug #22602] Compilation warning in helpdata.c

2014-09-09 Thread Christian Knoke
URL:
  

 Summary: Compilation warning in helpdata.c
 Project: Freeciv
Submitted by: chrisk
Submitted on: Di 09 Sep 2014 18:38:16 CEST
Category: client
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: S2_5rev26313
 Discussion Lock: Any
Operating System: GNU/Linux
 Planned Release: 

___

Details:

make -j 4 clean && ./autogen.sh --enable-debug=yes --enable-svnrev
--enable-gprof --enable-fcmp=gtk2 --with-readline --with-efence
--enable-ipv6=yes && make -j 4

[...]
  CC messagewin_common.lo
  CC overview_common.lo
  CC packhand.lo
cc1: warnings being treated as errors
helpdata.c: In function ‘boot_help_texts’:
helpdata.c:1718: error: ‘natural’ may be used uninitialized in this
function
At top level:
cc1: error: unrecognized command line option "-Wno-tautological-compare"
make[3]: *** [helpdata.lo] Fehler 1
make[3]: *** Warte auf noch nicht beendete Prozesse...
make[3]: Leaving directory `/home/chris/freeciv/svn/S2_5/client'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/chris/freeciv/svn/S2_5/client'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/chris/freeciv/svn/S2_5'
make: *** [all] Fehler 2





___

Reply to this item at:

  

___
  Nachricht gesendet von/durch Gna!
  http://gna.org/


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