From 3cc0796a370f59aad6d15328e576f2a2223db0c3 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Sun, 29 Nov 2009 21:37:57 +0000 Subject: Disable strict aliasing for speex for now to get rid of warnings, some very nasty casting in here git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23793 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libspeex/libspeex.make | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/codecs/libspeex/libspeex.make b/apps/codecs/libspeex/libspeex.make index dcf5b8b5fd..01fa5a3a3d 100644 --- a/apps/codecs/libspeex/libspeex.make +++ b/apps/codecs/libspeex/libspeex.make @@ -11,8 +11,10 @@ # (one for codec, one for core voice) # so a little trickery is necessary -SPEEXFLAGS = $(filter-out -O%,$(CODECFLAGS)) \ - -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \ +# disable strict aliasing optimizations for now, it gives warnings due to +# some horrid typecasting +SPEEXFLAGS = $(filter-out -O%, $(filter-out -fstrict-aliasing, $(CODECFLAGS))) \ + -fstrict-aliasing -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \ -I$(APPSDIR)/codecs/libspeex # libspeex is faster on ARM-targets with -O1 instead of -O2 -- cgit v1.2.3