Blame SOURCES/gssproxy_ticket_140_0001-bug-140-Remove-fno-strict-aliasing.patch

69b15c
From 21cde7fde306b3a4699fff415c90df457f5b30c7 Mon Sep 17 00:00:00 2001
69b15c
From: Roland Mainz <rmainz@redhat.com>
69b15c
Date: Thu, 9 Apr 2015 19:56:45 +0200
69b15c
Subject: [PATCH] bug #140: Remove -fno-strict-aliasing
69b15c
69b15c
Remove -fno-strict-aliasing (this is not required because gssproxy
69b15c
is mostly a good ISO C99/C11 citizen) and replace it with
69b15c
-Werror=strict-aliasing to ensure that if *anything* creeps up
69b15c
the build will just fail (this requires in gcc4.x's case the
69b15c
use of -fstrict-aliasing, too).
69b15c
69b15c
References:
69b15c
    - http://dbp-consulting.com/tutorials/StrictAliasing.html
69b15c
69b15c
Signed-off-by: Roland Mainz <rmainz@redhat.com>
69b15c
---
69b15c
 proxy/Makefile.am | 6 ++++--
69b15c
 1 file changed, 4 insertions(+), 2 deletions(-)
69b15c
69b15c
diff --git a/proxy/Makefile.am b/proxy/Makefile.am
69b15c
index 1e7c39cf2c2d3ef2c96c1b28c76d53d378054da6..6e38cf8116b70d51fe873720a2205572402d9f99 100644
69b15c
--- a/proxy/Makefile.am
69b15c
+++ b/proxy/Makefile.am
69b15c
@@ -36,10 +36,12 @@ if WANT_AUX_INFO
69b15c
     AM_CFLAGS += -aux-info $@.X
69b15c
 endif
69b15c
 if HAVE_GCC
69b15c
+# -fstrict-aliasing is needed so that -W*strict-aliasing works
69b15c
+# properly
69b15c
     AM_CFLAGS += -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith \
69b15c
                  -Wcast-qual -Wcast-align -Wwrite-strings \
69b15c
-                 -Werror-implicit-function-declaration \
69b15c
-                 -fno-strict-aliasing
69b15c
+                 -fstrict-aliasing -Wstrict-aliasing -Werror=strict-aliasing \
69b15c
+                 -Werror-implicit-function-declaration
69b15c
 endif
69b15c
 
69b15c
 dist_pkgconfig_DATA =
69b15c
-- 
69b15c
1.9.3
69b15c