diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-09 11:17:36 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-09 11:45:03 +0100 |
commit | f7941ceba3805439e2165526b51680d7a97601a9 (patch) | |
tree | 5b4dd21465dffaf6626cfef6eca69b785950b27a /m4 | |
parent | c885fd55e85f4d7f6d5cd425385d57a17f4ab1aa (diff) | |
download | NetworkManager-f7941ceba3805439e2165526b51680d7a97601a9.tar.gz |
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.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4 index a7d6669d41..77dcc7a50d 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 \ |