[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 15:51:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51579

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-16 15:45:15 UTC ---
To be clear, I didn't mean to imply that somebody here is going to add unnamed
parameters to C, only, that apparently *you* are seeing attribute((unused)) as
something meant to solve the same sort of problem (your talking about
signatures, etc, confirmed my suspects) whereas I think those are different
problems. To repeat, I think it's perfectly normal for a parameter marked
attribute((unused)) to be actually used. Anyway, I'm not maintaining the C
front-end, maybe somebody is interested in your proposal, I have no idea.



More information about the Gcc-bugs mailing list