[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Elias Pschernig wrote:
I think, the __attribute__((unused)) or the (void)variable make not much
sense, since there's no negative warning in that case. E.g.
d_my_dialog_proc(..., int c) { void(c); // use c later } never produces
a warning.
Right, but you're simply not supposed to write (void)c; in that case.
But, looking into the gcc manual, I think we should change the
"-Wno-unused" to "-Wno-unused-parameter". That way, it will still not
warn about unused parameters, but it will warn about unused local
variables at least, which is a good thing.
I would prefer to get rid of -Wno-unused completely, but that sounds fine.
Peter