summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-11-06 11:39:27 -0800
committerArne Coucheron <arco68@gmail.com>2019-09-28 00:23:56 +0200
commitf56ae12480999b485066ee1e53c38631c456d350 (patch)
tree993814ad70334b2c1ce4082707cd3e6e61467944
parenta32bccb95e5d4156462a315baa1a77e71452f2e0 (diff)
downloadhardware_qcom_audio-f56ae12480999b485066ee1e53c38631c456d350.tar.gz
hardware_qcom_audio-f56ae12480999b485066ee1e53c38631c456d350.tar.bz2
hardware_qcom_audio-f56ae12480999b485066ee1e53c38631c456d350.zip
Use -Werror in hardware/qcom/audio
* Suppress existing warnings. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I389b943471ccdcfc9b7db4411fa3973d77303a27
-rw-r--r--post_proc/Android.mk8
-rw-r--r--visualizer/Android.mk5
-rw-r--r--voice_processing/Android.mk6
3 files changed, 18 insertions, 1 deletions
diff --git a/post_proc/Android.mk b/post_proc/Android.mk
index 9d222919..f2a470b6 100644
--- a/post_proc/Android.mk
+++ b/post_proc/Android.mk
@@ -1,6 +1,12 @@
ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_POST_PROC)),true)
LOCAL_PATH:= $(call my-dir)
+qcom_post_proc_common_cflags := \
+ -O2 -fvisibility=hidden \
+ -Wall -Werror \
+ -Wno-unused-function \
+ -Wno-unused-variable
+
include $(CLEAR_VARS)
ifneq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),false)
@@ -15,7 +21,7 @@ LOCAL_SRC_FILES:= \
reverb.c \
effect_api.c
-LOCAL_CFLAGS+= -O2 -fvisibility=hidden
+LOCAL_CFLAGS += $(qcom_post_proc_common_cflags)
LOCAL_SHARED_LIBRARIES := \
libcutils \
diff --git a/visualizer/Android.mk b/visualizer/Android.mk
index 728e5c36..e81c6788 100644
--- a/visualizer/Android.mk
+++ b/visualizer/Android.mk
@@ -21,6 +21,11 @@ LOCAL_SRC_FILES:= \
LOCAL_CFLAGS+= -O2 -fvisibility=hidden
+LOCAL_CFLAGS += \
+ -Wall \
+ -Werror \
+ -Wno-unused-variable \
+
LOCAL_SHARED_LIBRARIES := \
libcutils \
liblog \
diff --git a/voice_processing/Android.mk b/voice_processing/Android.mk
index 6f624896..9ddf771f 100644
--- a/voice_processing/Android.mk
+++ b/voice_processing/Android.mk
@@ -11,6 +11,12 @@ LOCAL_MODULE_RELATIVE_PATH := soundfx
LOCAL_SRC_FILES:= \
voice_processing.c
+LOCAL_CFLAGS += \
+ -Wall \
+ -Werror \
+ -Wno-unused-function \
+ -Wno-unused-variable \
+
LOCAL_C_INCLUDES += \
$(call include-path-for, audio-effects)