Opened 14 years ago

Closed 13 years ago

#2808 closed Bugs (fixed)

boost parameters and gcc -Wunused-parameter

Reported by: plasmahh@… Owned by: Daniel Wallin
Milestone: Boost 1.39.0 Component: parameter
Version: Boost 1.38.0 Severity: Problem
Keywords: -Wunused-parameter Cc:

Description

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.

Change History (1)

comment:1 by Daniel Wallin, 13 years ago

Resolution: fixed
Status: newclosed

(In [53402]) Silence "unused parameter" warning in BOOST_PARAMETER_FUNCTION(). Fixes #2808.

Note: See TracTickets for help on using tickets.