summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-07-20 19:55:20 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-07-21 09:49:34 +0200
commita7942177c9f969faec1d767c67d4019a61dc7e16 (patch)
treeb70f2b22cc62441fe1c1c701861c989d0ac30071 /m4
parent488992b0109e2a3fb55a1ebd9180b7fa208a8ff6 (diff)
downloadModemManager-a7942177c9f969faec1d767c67d4019a61dc7e16.tar.gz
build: don't disable the aliasing checks
We now don't break the strict aliasing rules. Also, having a compiler flag that disables a warning among the flags that are meant to add extra sanity checking is not correct either: --enable-extra-warnings=no would generate a bad aliasin warning while the --enable-extra-warnings=yes would not.
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler_warnings.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index c592eb989..abc2da772 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -10,7 +10,7 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wstrict-prototypes \
-Wno-unused-parameter -Wno-sign-compare \
- -fno-strict-aliasing -Wno-deprecated-declarations \
+ -Wno-deprecated-declarations \
-Wno-unused-but-set-variable -Wformat-security; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"