summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-11-29 14:24:50 -0800
committerChih-Hung Hsieh <chh@google.com>2017-12-01 12:32:25 -0800
commit9635266c75a2671fd9fa7d1d8c2a5b9f0e3bc22e (patch)
tree4b22a567e909930dccb1cea10280305e643aa049 /healthd
parent26b7f2fce207201166ed9acd9ed97e53bc0e7d5b (diff)
downloadcore-9635266c75a2671fd9fa7d1d8c2a5b9f0e3bc22e.tar.gz
core-9635266c75a2671fd9fa7d1d8c2a5b9f0e3bc22e.tar.bz2
core-9635266c75a2671fd9fa7d1d8c2a5b9f0e3bc22e.zip
Use -Werror in system/core/healthd
Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I921735c9531594697e002937cd57a33c65552dbf
Diffstat (limited to 'healthd')
-rw-r--r--healthd/Android.bp18
1 files changed, 16 insertions, 2 deletions
diff --git a/healthd/Android.bp b/healthd/Android.bp
index 95bb5f555..ea5946984 100644
--- a/healthd/Android.bp
+++ b/healthd/Android.bp
@@ -9,6 +9,7 @@ cc_library_headers {
cc_library_static {
name: "libbatterymonitor",
srcs: ["BatteryMonitor.cpp"],
+ cflags: ["-Wall", "-Werror"],
vendor_available: true,
export_include_dirs: ["include"],
shared_libs: [
@@ -27,6 +28,11 @@ cc_library_static {
"healthd_common.cpp",
],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ ],
+
export_include_dirs: ["include"],
shared_libs: [
@@ -56,7 +62,11 @@ cc_binary {
"HealthServiceDefault.cpp",
],
- cflags: ["-DHEALTH_INSTANCE_NAME=\"default\""],
+ cflags: [
+ "-DHEALTH_INSTANCE_NAME=\"default\"",
+ "-Wall",
+ "-Werror",
+ ],
static_libs: [
"android.hardware.health@2.0-impl",
@@ -84,7 +94,11 @@ cc_binary {
],
local_include_dirs: ["include"],
- cflags: ["-DHEALTH_INSTANCE_NAME=\"backup\""],
+ cflags: [
+ "-DHEALTH_INSTANCE_NAME=\"backup\"",
+ "-Wall",
+ "-Werror",
+ ],
static_libs: [
"android.hardware.health@2.0-impl",