[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Fri Dec 16 14:41:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-16 14:38:40 UTC ---
I don't think we should start warning each time an __attribute__((unused))
parameter is actually used. In my experience that's absolutely common and
pervasive. If the parameter is meant to *never* be used, should be completely
removed, no? Or maybe what you are really asking for are unnamed parameters,
like in C++, which indeed can be handy sometimes when dealing with ABI
stability issues, etc? Seems something different, however.
More information about the Gcc-bugs
mailing list