[Olsr-dev] [PATCH v1 12/12] Makefile: WARNINGS: add -Wunused-parameter
Ferry Huberts
(spam-protected)
Tue May 29 15:59:41 CEST 2012
From: Ferry Huberts <(spam-protected)>
-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 <(spam-protected)>
---
Makefile.inc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Makefile.inc b/Makefile.inc
index 2c9d9da..2910fb0 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -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
--
1.7.7.6
More information about the Olsr-dev
mailing list