summaryrefslogtreecommitdiff
path: root/tests/audio
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-18 16:28:14 -0700
committerChih-Hung Hsieh <chh@google.com>2017-10-20 15:46:36 -0700
commit373d3c7257fa815d0b9ee8f16874470a6002042e (patch)
tree2488faeb9a5a2dfd9f76054bd4ba001b4806ffb3 /tests/audio
parentd7bf23ae7b93ec93b8b7c2ce98eaa2ea94f387aa (diff)
downloadextras-373d3c7257fa815d0b9ee8f16874470a6002042e.tar.gz
Use -Werror in system/extras
* Remove unused variables. * Fix redefined macro warnings. * Fix sign-compare warnings. * Fix 'return false' in main(). * Keep existing warnings to fix later. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ib92ef5297693595fb84ed4f8e61665bda4cee312
Diffstat (limited to 'tests/audio')
-rw-r--r--tests/audio/alsa/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/audio/alsa/Android.mk b/tests/audio/alsa/Android.mk
index c6e5a8af..7d37af96 100644
--- a/tests/audio/alsa/Android.mk
+++ b/tests/audio/alsa/Android.mk
@@ -20,6 +20,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE := pcmtest
LOCAL_SRC_FILES := pcmtest.cpp
+LOCAL_CFLAGS:= -Wall -Werror
LOCAL_SHARED_LIBRARIES += libcutils libutils liblog libtinyalsa
LOCAL_STATIC_LIBRARIES += libtestUtil
LOCAL_C_INCLUDES += system/extras/tests/include external/tinyalsa/include