diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-09 19:44:40 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-10-09 19:44:40 +0000 |
commit | 475e87e7d9c300160f0d205284946f7072603b4e (patch) | |
tree | 429dca7225740419aa57e8eeed6045d4a3d68a8a | |
parent | f29954fb256673fd601fd6eb56ff554bd250947d (diff) | |
parent | 21ebb55835948443be8480a3892e088cff560d6f (diff) | |
download | libcap-475e87e7d9c300160f0d205284946f7072603b4e.tar.gz |
Use -Werror in external/libcap am: e39c5304fc
am: 21ebb55835
Change-Id: Ib5d759f80df535a153911f3fcde259a3a8a635ca
-rw-r--r-- | Android.bp | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -12,6 +12,17 @@ // See the License for the specific language governing permissions and // limitations under the License. +cc_defaults { + name: "libcap_defaults", + cflags: [ + "-Wall", + "-Werror", + "-Wno-unused-parameter", + "-Wno-unused-result", + "-Wno-tautological-compare", + ], +} + cc_library { name: "libcap", host_supported: true, @@ -19,11 +30,7 @@ cc_library { vndk: { enabled: true, }, - - cflags: [ - "-Wno-unused-parameter", - "-Wno-tautological-compare", - ], + defaults: ["libcap_defaults"], srcs: [ "libcap/cap_alloc.c", @@ -52,10 +59,7 @@ cc_binary { srcs: ["progs/getcap.c"], - cflags: [ - "-Wno-unused-parameter", - "-Wno-tautological-compare", - ], + defaults: ["libcap_defaults"], static_libs: [ "libcap", @@ -67,10 +71,7 @@ cc_binary { srcs: ["progs/setcap.c"], - cflags: [ - "-Wno-unused-parameter", - "-Wno-tautological-compare", - ], + defaults: ["libcap_defaults"], static_libs: [ "libcap", |