|
Boost : |
Subject: [boost] Unused Parameter Warnings
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2008-09-17 17:40:54
I'm trying to silence a lot of unused parameter warnings in the boost
1.36 libraries I'm using. I'd like to submit these as patches so I don't
have to fix them again (I've had to do it for 1.34 and 1.35). Is there a
preferred boost wide solution to silencing these warnings? Should I
consult each library author on their preference?
AFAIK there are 4 common ways to silence these warnings.
* Compiler specific pragmas
* Pass by const reference to an empty inline template function
* Cast to void
* Delete the parameter name
* C-style comment out the parameter name
-- Michael Marcin
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk