Boost logo

Boost :

Subject: Re: [boost] [config] Macro for unused declarations
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-10-21 07:24:51


On 19/10/13 20:12, Jeremiah Willcock wrote:
> Would it be possible to have a macro for __attribute__((unused)) and
> similar pragmas to portably avoid "unused typedef" and related warnings
> (especially from recent versions of GCC)? I have mostly removed those
> in Boost.Graph, but there are some that need to remain---creating a
> typedef to a member type of a class to make sure that the member exists,
> for example. Thank you.

Wouldn't it be better to have a set of macros like
BOOST_IGNORE_UNUSED_TYPEDEF
BOOST_IGNORE_UNUSED_VARIABLE
BOOST_IGNORE_UNUSED_GLOBAL_VARIABLE

There are macros or functions like this all over Boost already.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk