URL:
<http://gna.org/bugs/?17988>
Summary: warning (-> error) when building with -DNDEBUG
Project: Battle for Wesnoth
Submitted by: ivanovic
Submitted on: So 03 Apr 2011 11:35:10 CEST
Category: Bug
Severity: 3 - Normal
Priority: 3 - Low
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.9.5+svn-r49093
Operating System: linux
_______________________________________________________
Details:
When using cmake to build and setting the C(XX)FLAG -DNDEBUG compilation
breaks due to warnings issued. To set these flags either do so via a system
env or by setting build type to release or changing the flags using ccmake.
There seem to be two cases of breakage with this flag at the moment:
cc1plus: warnings being treated as errors
/src/wesnoth/src/server/server.cpp:131:13: error: unused parameter 'signal'
/src/wesnoth/src/server/server.cpp:136:13: error: unused parameter 'signal'
/src/wesnoth/src/server/server.cpp:142:13: error: unused parameter 'signal'
make[2]: *** [src/CMakeFiles/wesnothd.dir/server/server.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/wesnothd.dir/all] Error 2
cc1plus: warnings being treated as errors
In file included from
/src/wesnoth/src/gui/auxiliary/event/dispatcher.cpp:18:0:
/src/wesnoth/src/gui/auxiliary/event/dispatcher_private.hpp:353:1: error:
unused parameter 'event'
/src/wesnoth/src/gui/auxiliary/event/dispatcher_private.hpp:353:1: error:
unused parameter 'dispatcher'
/src/wesnoth/src/gui/auxiliary/event/dispatcher_private.hpp:353:1: error:
unused parameter 'widget'
In file included from
/src/wesnoth/src/gui/auxiliary/event/dispatcher.cpp:18:0:
/src/wesnoth/src/gui/auxiliary/event/dispatcher_private.hpp:389:1: error:
unused parameter 'dispatcher'
make[2]: ***
[src/CMakeFiles/wesnoth.dir/gui/auxiliary/event/dispatcher.cpp.o] Error 1
Since those are warnings due to the flags used, it can probably also be
reproduced using scons.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17988>
_______________________________________________
Nachricht geschickt von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs