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 15:45:15 +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 #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.