summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-29 12:59:51 +0100
committerThomas Haller <thaller@redhat.com>2014-10-29 14:09:52 +0100
commitf1a0b4afd20d03b047977b7715df9e557ee24d76 (patch)
treef9c128e3de2f8017f598bbc6870f9ea9d8289611 /m4
parentdd243ceefe998be36b5f0bea014d007ba30ec3fb (diff)
downloadNetworkManager-f1a0b4afd20d03b047977b7715df9e557ee24d76.tar.gz
build: renable -Wstrict-prototypes compiler warning
The warning -Wstrict-prototypes was disabled by commit db9b1df0e47996ff8aaea468a11e1e97f64ee126 . Enable it again, but avoid warnings for WiMax SDK by explicitly disabling the compiler warning where needed. Apparently clang does not produce a warning for -Wstrict-prototypes, hence we don't need a clang specific #pragma. Signed-off-by: Thomas Haller <thaller@redhat.com>
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 79d2cbfe97..3fde795504 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -25,6 +25,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 \
+ -Wstrict-prototypes \
-fno-strict-aliasing -Wno-unused-but-set-variable \
-Wundef -Wimplicit-function-declaration \
-Wpointer-arith -Winit-self \