Deactivate gcc's strict aliasing optimizations.
authorAndre Noll <maan@systemlinux.org>
Sat, 13 Jun 2009 17:22:51 +0000 (19:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 13 Jun 2009 17:22:51 +0000 (19:22 +0200)
This causes a lot of warnings which are not easy to fix and probably
harmless. So simply disallow gcc to assume the strictest aliasing
rules.

Makefile.in

index d221892..b4392a3 100644 (file)
@@ -50,6 +50,7 @@ CPPFLAGS += -Wmissing-format-attribute
 CPPFLAGS += -Wmissing-noreturn
 CPPFLAGS += -Wunused-macros
 CPPFLAGS += -Wbad-function-cast
+CPPFLAGS += -fno-strict-aliasing
 CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F)
 CPPFLAGS += @SSL_CPPFLAGS@
 CPPFLAGS += @ncurses_cppflags@