diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-10 14:26:31 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-10-10 14:33:54 -0700 |
commit | 3b9a15874a8048dc3f502e493adc28365eec59fc (patch) | |
tree | 4aab1ab4ccd7bf5da7fb9ebcf617cb167adef1fc | |
parent | 835f318b9785a70415980fba96c34ee5c6b7e415 (diff) | |
download | libcap-ng-3b9a15874a8048dc3f502e493adc28365eec59fc.tar.gz |
Use -Werror in external/libcap-ng
* Suppress enum-conversion and unused-parameter warnings.
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I050f18a8019110a5397ea9d8eb5b1dce32b77386
-rw-r--r-- | Android.mk | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -8,6 +8,10 @@ LOCAL_SRC_FILES := \ LOCAL_C_INCLUDES += $(LOCAL_PATH)/libcap-ng-0.7/src LOCAL_MODULE := libcap-ng +LOCAL_CFLAGS := \ + -Wall -Werror \ + -Wno-enum-conversion \ + -Wno-unused-parameter include $(BUILD_SHARED_LIBRARY) ###################### @@ -17,7 +21,5 @@ LOCAL_SRC_FILES := libcap-ng-0.7/utils/pscap.c LOCAL_C_INCLUDES += $(LOCAL_PATH)/libcap-ng-0.7/src LOCAL_SHARED_LIBRARIES += libcap-ng LOCAL_MODULE := pscap +LOCAL_CFLAGS := -Wall -Werror include $(BUILD_EXECUTABLE) - - - |