summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-09 11:17:36 +0100
committerThomas Haller <thaller@redhat.com>2016-03-09 11:45:03 +0100
commit60a1a19009336cc2de0d87c745da72bcc7f070d3 (patch)
tree5b4dd21465dffaf6626cfef6eca69b785950b27a /m4
parent5b9d51c123125c2bc2b694737cddf3ad4c857859 (diff)
build: compile with -Wno-duplicate-decl-specifier
Duplicated const specifiers are allowed by C99 and can easily happen in macros. Also, systemd's interal code will use them. Disable this warning, it doesn't seem useful.
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler_warnings.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index a7d6669d4..77dcc7a50 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -50,6 +50,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wformat-security \
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
+ -Wno-duplicate-decl-specifier \
-Wstrict-prototypes \
-fno-strict-aliasing -Wno-unused-but-set-variable \
-Wundef -Wimplicit-function-declaration \