summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-06-10 10:54:59 +0200
committerDaniel Mack <daniel@zonque.org>2015-06-10 11:16:42 +0200
commit8dc31a63981267f257583ef82ceb79859ff243f8 (patch)
treeae2ad2843caeb35e8d8a21bb7809ae65cfe69a81
parent229d17cf12d46dd6aa3dc1011277c9ff71f5cc4c (diff)
build-sys: turn some warnings into errors
Make the build sys error out on missing function prototypes, missing variable declarations, implicit function declarations or forgotten return statements. None of these conditions are acceptable, and by making them hard errors, the build bots can detect them earlier.
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 5719075934..b767175fa1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -159,10 +159,12 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
-Wdeclaration-after-statement \
-Wfloat-equal \
-Wsuggest-attribute=noreturn \
- -Wmissing-prototypes \
+ -Werror=missing-prototypes \
+ -Werror=implicit-function-declaration \
+ -Werror=missing-declarations \
+ -Werror=return-type \
-Wstrict-prototypes \
-Wredundant-decls \
- -Wmissing-declarations \
-Wmissing-noreturn \
-Wshadow \
-Wendif-labels \