This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51579] GCC should be able report a warning for usage of parameters marked with __attribute__((unused))


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]