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 >
I think there was another bug about this and it was closed because we use unused to mean it might be unused not that it is just unused.
unused is really a marker for maybe unused and that is it.