diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-12-12 19:49:30 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-12-12 19:49:30 +0000 |
commit | 9f8ff1699a29b2828a41ce6cec8b41ba89f609c2 (patch) | |
tree | 3962d4c66136f9cbfde2b75d54519b48c8b55d8f | |
parent | 30b473eb44785d0fe7003fcf2aa82955b16be151 (diff) |
add -Wstrict-aliasing=2 to everything to try to catch all type-punning
svn path=/trunk/; revision=15815
-rw-r--r-- | packages/darwin_app/Makefile | 2 | ||||
-rwxr-xr-x | packages/linux_make/Makefile | 2 | ||||
-rwxr-xr-x | packages/win32_inno/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/darwin_app/Makefile b/packages/darwin_app/Makefile index 22392ace..a05b7e99 100644 --- a/packages/darwin_app/Makefile +++ b/packages/darwin_app/Makefile @@ -27,7 +27,7 @@ WISH_CONTENTS = "$(WISH)/Contents" #STRIP = strip -x STRIP = echo -DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE -Wstrict-aliasing=2 # CPU-specific gleaned from: # http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/ diff --git a/packages/linux_make/Makefile b/packages/linux_make/Makefile index 80b06617..696c0e5e 100755 --- a/packages/linux_make/Makefile +++ b/packages/linux_make/Makefile @@ -32,7 +32,7 @@ endif #STRIP = strip --strip-unneeded -R .note -R .comment STRIP = echo -DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE -Wstrict-aliasing=2 OPT_CFLAGS = TARGET_PLATFORM := $(shell uname -m) diff --git a/packages/win32_inno/Makefile b/packages/win32_inno/Makefile index ffd724c3..3a4b132e 100755 --- a/packages/win32_inno/Makefile +++ b/packages/win32_inno/Makefile @@ -17,7 +17,7 @@ include $(BUILDLAYOUT_DIR)/Makefile.buildlayout #STRIP = strip --strip-unneeded -R .note -R .comment STRIP = echo -DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE +DEBUG_CFLAGS = -g -fno-inline-functions -fno-omit-frame-pointer -DDEBUG_SOUNDFILE -Wstrict-aliasing=2 OPT_CFLAGS = # compile for pentium4 so we can use SSE2 |