Add more warning flags

This commit is contained in:
Lucas De Marchi 2011-11-24 13:29:28 -02:00
parent 6fc20bbfee
commit e7d903696a

View File

@ -2,12 +2,17 @@
autoreconf --install --symlink autoreconf --install --symlink
MYCFLAGS="-g -Wall \ MYCFLAGS="-g -Wall -Wextra \
-Wmissing-declarations -Wmissing-prototypes \ -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \ -Wnested-externs -Wpointer-arith \
-Wpointer-arith -Wsign-compare -Wchar-subscripts \ -Wpointer-arith -Wsign-compare -Wchar-subscripts \
-Wstrict-prototypes -Wshadow \ -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() { libdir() {
echo $(cd $1/$(gcc -print-multi-os-directory); pwd) echo $(cd $1/$(gcc -print-multi-os-directory); pwd)