From 9f8ff1699a29b2828a41ce6cec8b41ba89f609c2 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 12 Dec 2011 19:49:30 +0000 Subject: add -Wstrict-aliasing=2 to everything to try to catch all type-punning svn path=/trunk/; revision=15815 --- packages/darwin_app/Makefile | 2 +- packages/linux_make/Makefile | 2 +- packages/win32_inno/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages') 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 -- cgit v1.2.1