On Wed, 21 Oct 2009, Thomas Adam wrote:
On Wed, Oct 21, 2009 at 02:37:54PM +0200, Peter Breitenlohner wrote:
Hi,
I'd like to propose the attached eight patches for fvwm-2.5.28, mostly
concerned with the build system but not exclusively so. Each patch starts
with a comment explaining the purpose, a summay is given below.
Please resend all of these as separate emails threads in their own right.
Regards
Peter Breitenlohner <[email protected]>
We (me) certainly do want implicit-int warnings!
On the other hand there are zillions of type-punning warnings.
Instead of suppressing these warnings it is probably safer to
disable the strict aliasing optimizations (implied by '-O2').
diff -ur -x Makefile.in -x aclocal.m4 -x config.h.in -x 'config.h.in~' -x
configure -x autom4te.cache -x INSTALL -x config.guess -x config.sub -x depcomp
-x install-sh -x missing fvwm-2.5.28.orig/configure.ac fvwm-2.5.28/configure.ac
--- fvwm-2.5.28.orig/configure.ac 2009-09-20 09:02:33.000000000 +0200
+++ fvwm-2.5.28/configure.ac 2009-10-20 20:38:28.000000000 +0200
@@ -211,7 +211,7 @@
# added -Wall for gcc, what about for others?
if test "x$GCC" = "xyes"; then
- CFLAGS="-Wall -Wno-implicit-int $CFLAGS"
+ CFLAGS="-Wall -fno-strict-aliasing $CFLAGS"
fi
# Help finding POSIX functions on some systems