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 17 Aug 2013 07:43:28 PM UTC  
 
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 20 Jan 2014 03:46:04 AM UTC, 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 20 Sep 2013 06:09:35 AM UTC, 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 27 Aug 2013 10:02:50 AM UTC, 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 17 Aug 2013 08:09:00 PM UTC, comment #2:

This is with -DCMAKE_BUILD_TYPE=Release

Adrián Chaves Fernández <gallaecio>
Sat 17 Aug 2013 07:55:19 PM UTC, comment #1:
Adrián Chaves Fernández <gallaecio>
Sat 17 Aug 2013 07:43:28 PM UTC, 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):
   
   
Comment:
   

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.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

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

    Back to the top


    Powered by Savane 3.1-cleanup