Makefile: WARNINGS: add -Wunused-parameter
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 11:04:18 +0000 (13:04 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 29 May 2012 13:19:32 +0000 (15:19 +0200)
-Wunused-parameter
  Warn whenever a function parameter is unused aside from its declaration.

  To suppress this warning use the unused attribute.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
Makefile.inc

index 2c9d9da..2910fb0 100644 (file)
@@ -99,6 +99,7 @@ WARNINGS +=   -Wundef
 WARNINGS +=    -Wlogical-op
 WARNINGS +=    -Wjump-misses-init
 WARNINGS +=    -Wtrampolines
+WARNINGS +=    -Wunused-parameter
 # the following 2 do not work yet and need more work on it
 #WARNINGS +=   -Wconversion
 #WARNINGS +=   -Wredundant-decls