aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2013-06-06 19:29:04 +0300
committerPekka Enberg <penberg@kernel.org>2013-06-06 19:39:27 +0300
commita298c170c6d8630a0ef85c8a2bafab8e388bbdf5 (patch)
tree9af65a0b36bbaff12f0d13e96ccf1e99c9f2f488
parent9985bc420a8c99e5fa03187da9cd5f3b98349351 (diff)
downloadjato-a298c170c6d8630a0ef85c8a2bafab8e388bbdf5.tar.gz
More strict GCC warnings
Signed-off-by: Pekka Enberg <penberg@kernel.org>
-rw-r--r--Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index ac2046a8..1a071d9b 100644
--- a/Makefile
+++ b/Makefile
@@ -215,24 +215,25 @@ JATO_CFLAGS += -Wl,--wrap -Wl,pthread_create -Wl,--wrap -Wl,pthread_join \
# XXX: Temporary hack -Vegard
DEFAULT_CFLAGS += -DNOT_IMPLEMENTED='fprintf(stderr, "%s:%d: warning: %s not implemented\n", __FILE__, __LINE__, __func__)'
-WARNINGS += \
- -Wall \
- -Wcast-align \
- -Wformat=2 \
- -Winit-self \
- -Wmissing-declarations \
- -Wmissing-prototypes \
- -Wnested-externs \
- -Wno-system-headers \
- -Wold-style-definition \
- -Wredundant-decls \
- -Wsign-compare \
- -Wstrict-prototypes \
- -Wundef \
- -Wvolatile-register-var \
- -Wwrite-strings
-
-DEFAULT_CFLAGS += $(WARNINGS)
+EXTRA_WARNINGS =
+EXTRA_WARNINGS += -Wformat
+EXTRA_WARNINGS += -Wformat-security
+EXTRA_WARNINGS += -Wformat-y2k
+EXTRA_WARNINGS += -Winit-self
+EXTRA_WARNINGS += -Wmissing-declarations
+EXTRA_WARNINGS += -Wmissing-prototypes
+EXTRA_WARNINGS += -Wnested-externs
+EXTRA_WARNINGS += -Wno-system-headers
+EXTRA_WARNINGS += -Wno-unused-parameter
+EXTRA_WARNINGS += -Wold-style-definition
+EXTRA_WARNINGS += -Wredundant-decls
+EXTRA_WARNINGS += -Wstrict-prototypes
+EXTRA_WARNINGS += -Wswitch-default
+EXTRA_WARNINGS += -Wundef
+EXTRA_WARNINGS += -Wwrite-strings
+EXTRA_WARNINGS += -Wcast-align
+
+DEFAULT_CFLAGS += -Wall -Wextra $(EXTRA_WARNINGS)
ifeq ($(uname_M),i386)
OPTIMIZATION_LEVEL = -O3