bugBattle for Wesnoth - Bugs: bug #21030, server.cpp:132:13: error: unused...

Show feedback again

bug #21030: server.cpp:132:13: error: unused parameter 'signal' [-Werror=unused-parameter]

Submitted by:  Adrián Chaves Fernández <gallaecio>
Submitted on:  Sat Aug 17 19:43:28 2013  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Multiplayer
Status: InvalidPrivacy: Public
Assigned to: Alexander van Gessel <ai0867>Open/Closed: Closed
Release: 1.10.7Operating System: Chakra

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Mon Jan 20 03:46:04 2014, comment #5:

Compiling with -DNDEBUG is now explicitly unsupported and will cause compilation to fail using an #error.
That makes this bug invalid.

Alexander van Gessel <ai0867>
Project MemberIn charge of this item.
Fri Sep 20 06:09:35 2013, comment #4:

For reference, I believe this is caused by the -DNDEBUG flag passed to the compiler with the default Release build configuration in cmake. Defining the NDEBUG preprocessor symbol causes assert() statements to not produce any code at build time; at least in server.cpp, the conflicting code only makes use of the named parameter for passing it to assert() statements, hence the warning/error with NDEBUG defined.

Ignacio R. Morelle <shadowmaster>
Project Administrator
Tue Aug 27 10:02:50 2013, comment #3:

I got inspired by Gentoo and added "-DENABLE_STRICT_COMPILATION=FALSE" to cmake flags. That seems an acceptable work-around until upstream fixes it.

Vladimír Čunát <vcunat>
Sat Aug 17 20:09:00 2013, comment #2:

This is with -DCMAKE_BUILD_TYPE=Release

Adrián Chaves Fernández <gallaecio>
Sat Aug 17 19:55:19 2013, comment #1:
Adrián Chaves Fernández <gallaecio>
Sat Aug 17 19:43:28 2013, original submission:
Adrián Chaves Fernández <gallaecio>


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by ai0867 (Posted a comment)
  • -unavailable- added by shadowmaster (Posted a comment)
  • -unavailable- added by vcunat (Posted a comment)
  • -unavailable- added by gallaecio (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Feb 10 02:04:40 2014shadowmasterOpen/ClosedOpen=>Closed
    Mon Jan 20 03:46:04 2014ai0867StatusNone=>Invalid
      Assigned toNone=>ai0867
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup