Subject: [Boost-bugs] [Boost C++ Libraries] #2808: boost parameters and gcc -Wunused-parameter
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-27 14:45:27
#2808: boost parameters and gcc -Wunused-parameter
--------------------------------+-------------------------------------------
Reporter: plasmahh_at_[hidden] | Owner: danielw
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: parameter
Version: Boost 1.38.0 | Severity: Problem
Keywords: -Wunused-parameter |
--------------------------------+-------------------------------------------
Hi, the BOOST_PARAMETER_FUNCTION macro leaves a helper function with the
parameter boost_parameter_enabler_argument around. however, that parameter
is never used, so gcc with -Wunused-parameters leads to really ugly
template infested warnings that the user has no control over. I suggest
therefore either to remove the name of the parameter entirely (or rather
comment it out for documentation purposes), or if this is not supported by
all compilers (gcc 4.2-4.4 do work here) to have this parameter casted to
void in the function body.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2808> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC