__attribute__((unused)) and parameter decls
Mike Stump
mrs@wrs.com
Mon Oct 19 17:30:00 GMT 1998
> Date: Mon, 19 Oct 1998 17:26:38 +0100
> From: Nathan Sidwell <nathan@acm.org>
> To: egcs-bugs@cygnus.com
> G++ goesn't grok __attribute__ when applied to function parameters.
> GNU C++ does not currently support this attribute as definitions
> without parameters are valid in C++.
> So my request is, can g++ be extended so that __attribute__((unused))
> works on parameters?
I don't see a good reason why to not go that direction, so yes, in the
name of consistency and compatibleness.
More information about the Gcc-bugs
mailing list