summaryrefslogtreecommitdiffstats
path: root/configure.ac
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 /configure.ac
parentMerge pull request #130 from whot/hwdb-updates (diff)
downloadsystemd-8dc31a63981267f257583ef82ceb79859ff243f8.tar.xz
systemd-8dc31a63981267f257583ef82ceb79859ff243f8.zip
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.
Diffstat (limited to 'configure.ac')
-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 \