From 122352d983805b8ded5f8f3c07e75844244aba40 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Mon, 2 Oct 2017 15:20:07 -0700 Subject: Use -Werror in system/core * Move -Wall -Werror from cppflags to cflags. * Fix/suppress warning on unused variables. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I1e05e96a1d0bcb2ccef1ce456504b3af57167cc5 --- libvndksupport/Android.bp | 1 + libvndksupport/tests/Android.bp | 1 + 2 files changed, 2 insertions(+) (limited to 'libvndksupport') diff --git a/libvndksupport/Android.bp b/libvndksupport/Android.bp index b62422323..fec79b70d 100644 --- a/libvndksupport/Android.bp +++ b/libvndksupport/Android.bp @@ -3,6 +3,7 @@ subdirs = ["tests"] cc_library { name: "libvndksupport", srcs: ["linker.c"], + cflags: ["-Wall", "-Werror"], local_include_dirs: ["include/vndksupport"], export_include_dirs: ["include"], shared_libs: ["liblog"], diff --git a/libvndksupport/tests/Android.bp b/libvndksupport/tests/Android.bp index 3587cf88a..5b467f8ff 100644 --- a/libvndksupport/tests/Android.bp +++ b/libvndksupport/tests/Android.bp @@ -17,6 +17,7 @@ cc_test { srcs: [ "linker_test.cpp", ], + cflags: ["-Wall", "-Werror"], host_supported: false, shared_libs: [ -- cgit v1.2.3