|
Boost : |
Subject: Re: [boost] Towards a Warning free code policy proposal
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2010-09-03 03:33:25
On 03/09/10 05:23, Jeff Flinn wrote:
>> C4100 (Unreferenced formal parameter) - delete the parameter name or
>> add a reference to the parameter in the function: (void)foo;
>
> I thought I remember the latter triggering another warning. I don't
> remember the exact verbage or compiler. Or does the prefix (void)
> supress that?
could be fixed by having an helper details function like:
void unused_param(T const&) {}
and do
unused_param(oo);
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk