mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
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.
This commit is contained in:
parent
229d17cf12
commit
8dc31a6398
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user