summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:05:58 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 11:05:58 +0200
commit17b794722397884e41daa6fa223d8e074e9e4239 (patch)
treeefc29e73dea1d2733673e56b20ae8eca341d7027 /configure.ac
parentf81999f220f4fc6bc61f1a5e2eb62d494785e2bf (diff)
configure.ac: use "gcc -Wunreachable-code" if available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 2659714..301a6d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -736,8 +736,8 @@ else
fi
-#-Wconversion -Wunreachable-code -Wmissing-noreturn"
-for option in -Wdeclaration-after-statement -Wall -MD -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wwrite-strings -W -Wcast-align -Waggregate-return -Wbad-function-cast -Wcast-qual -Wundef -Wredundant-decls -Wsign-compare -Wnested-externs -Winline -Wdisabled-optimization -Wfloat-equal -Wmissing-format-attribute -Wmultichar -Wc++-compat -Wformat=2
+#-Wconversion -Wmissing-noreturn -ffunction-sections -Wl,--gc-sections -Wl,--print-gc-sections
+for option in -Wdeclaration-after-statement -Wall -MD -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wshadow -Wwrite-strings -W -Wcast-align -Waggregate-return -Wbad-function-cast -Wcast-qual -Wundef -Wredundant-decls -Wsign-compare -Wnested-externs -Winline -Wdisabled-optimization -Wfloat-equal -Wmissing-format-attribute -Wmultichar -Wc++-compat -Wformat=2 -Wunreachable-code
do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"