libstagefright: audioflinger: use no strict aliasing for now
Change-Id: Ie16c84cd63418800953ee8105b0dc338d87e8aa5
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index acc3abf..93bf905 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -66,6 +66,8 @@
$(TOP)/external/tremolo \
$(TOP)/external/openssl/include \
+LOCAL_CFLAGS += -fno-strict-aliasing
+
LOCAL_SHARED_LIBRARIES := \
libbinder \
libcamera_client \
diff --git a/services/audioflinger/Android.mk b/services/audioflinger/Android.mk
index 061a079..fd9067c 100644
--- a/services/audioflinger/Android.mk
+++ b/services/audioflinger/Android.mk
@@ -30,6 +30,8 @@
# uncomment for debugging timing problems related to StateQueue::push()
LOCAL_CFLAGS += -DSTATE_QUEUE_DUMP
+LOCAL_CFLAGS += -fno-strict-aliasing
+
LOCAL_C_INCLUDES := \
$(call include-path-for, audio-effects) \
$(call include-path-for, audio-utils)