
21 Oct
2013
21 Oct
'13
11:24 a.m.
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.