This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2011 14:38:40 +0000
- Subject: [Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))
- Auto-submitted: auto-generated
- References: <bug-51579-4@http.gcc.gnu.org/bugzilla/>
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.