summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-11-24 13:29:28 -0200
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2011-11-24 13:29:28 -0200
commite7d903696abc0dac636f196040212276fc08a24f (patch)
tree424bf167fedd72de4078ea30ccaa4f6f1ea44849 /autogen.sh
parent6fc20bbfee8f3354c4ccabd1b7b6db5c45f5ccb4 (diff)
downloadkmod-e7d903696abc0dac636f196040212276fc08a24f.tar.gz
Add more warning flags
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index d465ab6..b16a56e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,12 +2,17 @@
autoreconf --install --symlink
-MYCFLAGS="-g -Wall \
+MYCFLAGS="-g -Wall -Wextra \
-Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \
--Wformat-security -Wtype-limits"
+-Wformat-security -Wtype-limits \
+-Wformat=2 -Wuninitialized -Winit-self -Wundef \
+-Wmissing-include-dirs -Wold-style-definition \
+-Wfloat-equal -Wredundant-decls -Wendif-labels \
+-Wcast-align -Wstrict-aliasing -Wwrite-strings \
+-Wno-unused-parameter"
libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd)