]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: turn some warnings into errors 135/head
authorDaniel Mack <daniel@zonque.org>
Wed, 10 Jun 2015 08:54:59 +0000 (10:54 +0200)
committerDaniel Mack <daniel@zonque.org>
Wed, 10 Jun 2015 09:16:42 +0000 (11:16 +0200)
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.

configure.ac

index 571907593471ca66e92ec20ffc0b947e055d2170..b767175fa10cec1efc0231e108899d83411da87f 100644 (file)
@@ -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 \