[Bug c/18183] New: Warning when supposedly unused parameters are used
terra at gnome dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 27 16:28:00 GMT 2004
It would be nice to get a warning for the code below when bar is used.
Using something documented as unused is likely a bug.
void
foo (int __attribute__((unused)) bar)
{
bar++;
}
> gcc-3.4 -W -Wunused -Wall -O2 -c ~/foo.c
>
--
Summary: Warning when supposedly unused parameters are used
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: terra at gnome dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.8
GCC host triplet: sparc-sun-solaris2.8
GCC target triplet: sparc-sun-solaris2.8
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18183
More information about the Gcc-bugs
mailing list