
17 Sep
2008
17 Sep
'08
9:40 p.m.
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