summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2017-10-02 17:20:07 -0500
committerChih-Hung Hsieh2017-11-01 13:32:55 -0500
commit122352d983805b8ded5f8f3c07e75844244aba40 (patch)
tree2512a37968404bd39265da943bee33e33e064744 /libgrallocusage
parent15251c24b9cbb809aad74d8e5796f0eb6d83d8bb (diff)
downloadplatform-system-core-122352d983805b8ded5f8f3c07e75844244aba40.tar.gz
platform-system-core-122352d983805b8ded5f8f3c07e75844244aba40.tar.xz
platform-system-core-122352d983805b8ded5f8f3c07e75844244aba40.zip
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
Diffstat (limited to 'libgrallocusage')
-rw-r--r--libgrallocusage/Android.bp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libgrallocusage/Android.bp b/libgrallocusage/Android.bp
index cf03868d2..bcc061691 100644
--- a/libgrallocusage/Android.bp
+++ b/libgrallocusage/Android.bp
@@ -15,9 +15,12 @@
15cc_library_static { 15cc_library_static {
16 name: "libgrallocusage", 16 name: "libgrallocusage",
17 vendor_available: true, 17 vendor_available: true,
18 cflags: [
19 "-Wall",
20 "-Werror",
21 ],
18 cppflags: [ 22 cppflags: [
19 "-Weverything", 23 "-Weverything",
20 "-Werror",
21 "-Wno-c++98-compat-pedantic", 24 "-Wno-c++98-compat-pedantic",
22 // Hide errors in headers we include 25 // Hide errors in headers we include
23 "-Wno-global-constructors", 26 "-Wno-global-constructors",