Unused Parameter Warnings

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

________________________________________ De: boost-bounces@lists.boost.org [boost-bounces@lists.boost.org] En nombre de Michael Marcin [mike.marcin@gmail.com] Enviado el: miércoles, 17 de septiembre de 2008 23:40 Para: boost@lists.boost.org Asunto: [boost] Unused Parameter Warnings
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.
[...] * C-style comment out the parameter name
The last one is AFAIK the preferred way to deal with this warning. You might want to prepare a patch (or, better yet, different patches for each library) and issue a/some ticket/s at svn.boost.org so that the authors take care of the problem. HTH, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

JOAQUIN M. LOPEZ MUÑOZ wrote:
AFAIK there are 4 common ways to silence these warnings.
[...] * C-style comment out the parameter name
The last one is AFAIK the preferred way to deal with this warning. You might want to prepare a patch (or, better yet, different patches for each library) and issue a/some ticket/s at svn.boost.org so that the authors take care of the problem.
Just for dynamic_bitset, it would be slightly more effective to post a note here (not necessarily a patch) or mail me directly. -- Genny
participants (3)
-
Gennaro Prota
-
JOAQUIN M. LOPEZ MUÑOZ
-
Michael Marcin