diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-11 13:56:03 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-10-11 14:44:13 -0700 |
commit | 9dfecbdec202ce5133f8ad852d8042a42b511cc5 (patch) | |
tree | cb85bde593ad6d6aa4f874dff4d0d49482bdd9fa | |
parent | cd76f998688d145235de78ecd5b340d0eac9239d (diff) | |
download | safe-iop-9dfecbdec202ce5133f8ad852d8042a42b511cc5.tar.gz |
Use -Werror in external/safe-iop
* Suppress existing warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I45f1ecb7e9d5999216769fe70793c887d3d58e4b
-rw-r--r-- | Android.mk | 4 | ||||
-rw-r--r-- | testsuite/Android.mk | 5 |
2 files changed, 8 insertions, 1 deletions
@@ -21,6 +21,10 @@ LOCAL_C_INCLUDES := \ LOCAL_SRC_FILES := src/safe_iop.c +LOCAL_CFLAGS := \ + -Wall -Werror \ + -Wno-unused-parameter \ + LOCAL_MODULE := libsafe_iop include $(BUILD_STATIC_LIBRARY) diff --git a/testsuite/Android.mk b/testsuite/Android.mk index 942ae91..0cb820c 100644 --- a/testsuite/Android.mk +++ b/testsuite/Android.mk @@ -20,7 +20,10 @@ LOCAL_C_INCLUDES := \ # TODO: make the test use the compiled static lib. LOCAL_SRC_FILES := ../src/safe_iop.c -LOCAL_CFLAGS := -DSAFE_IOP_TEST=1 -DNDEBUG=1 +LOCAL_CFLAGS := \ + -DSAFE_IOP_TEST=1 -DNDEBUG=1 \ + -Wall -Werror \ + -Wno-unused-parameter \ LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) LOCAL_MODULE_TAGS := optional |