From: Lucas De Marchi Date: Thu, 24 Nov 2011 15:29:28 +0000 (-0200) Subject: Add more warning flags X-Git-Tag: v1~197 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7d903696abc0dac636f196040212276fc08a24f;p=thirdparty%2Fkmod.git Add more warning flags --- diff --git a/autogen.sh b/autogen.sh index d465ab66..b16a56eb 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)