From: Daniel Mack Date: Wed, 10 Jun 2015 08:54:59 +0000 (+0200) Subject: build-sys: turn some warnings into errors X-Git-Tag: v221~150^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F135%2Fhead;p=thirdparty%2Fsystemd.git 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. --- diff --git a/configure.ac b/configure.ac index 57190759347..b767175fa10 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 \