From Bugzilla Helper: User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22smp i686) According to the man page, -Wall implies -Wunused-parameter, but tests show it doesn't. Reproducible: Always Steps to Reproduce: Create a foo.c file the the following line: int foo(int a) { return 0; } Then, compile with: gcc -Wall -c foo.c You will get no warnings. If you compile with: gcc -Wall -Wunused-parameter -c foo.c Then you get the warning: foo.c: In function `foo': foo.c:1: warning: unused parameter `a' By the way, the -Wunused, which is also supposed to imply -Wunused-parameter, does not work either.
Sorry. This is not a bug. I misread the man page, which says: In order to get a warning about an unused function parameter, you must either specify `-W -Wunused' or separatly specify `-Wunused-parameter'.