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 /libprocinfo
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 'libprocinfo')
-rw-r--r--libprocinfo/Android.bp13
1 files changed, 6 insertions, 7 deletions
diff --git a/libprocinfo/Android.bp b/libprocinfo/Android.bp
index b568ee5da..1cfabd5be 100644
--- a/libprocinfo/Android.bp
+++ b/libprocinfo/Android.bp
@@ -14,14 +14,14 @@
14// limitations under the License. 14// limitations under the License.
15// 15//
16 16
17libprocinfo_cppflags = [ 17cc_defaults {
18 "-Wall", 18 name: "libprocinfo_defaults",
19 "-Wextra", 19 cflags: ["-Wall", "-Werror", "-Wextra"],
20 "-Werror", 20}
21]
22 21
23cc_library { 22cc_library {
24 name: "libprocinfo", 23 name: "libprocinfo",
24 defaults: ["libprocinfo_defaults"],
25 vendor_available: true, 25 vendor_available: true,
26 vndk: { 26 vndk: {
27 enabled: true, 27 enabled: true,
@@ -30,7 +30,6 @@ cc_library {
30 srcs: [ 30 srcs: [
31 "process.cpp", 31 "process.cpp",
32 ], 32 ],
33 cppflags: libprocinfo_cppflags,
34 33
35 local_include_dirs: ["include"], 34 local_include_dirs: ["include"],
36 export_include_dirs: ["include"], 35 export_include_dirs: ["include"],
@@ -52,6 +51,7 @@ cc_library {
52// ------------------------------------------------------------------------------ 51// ------------------------------------------------------------------------------
53cc_test { 52cc_test {
54 name: "libprocinfo_test", 53 name: "libprocinfo_test",
54 defaults: ["libprocinfo_defaults"],
55 host_supported: true, 55 host_supported: true,
56 srcs: [ 56 srcs: [
57 "process_test.cpp", 57 "process_test.cpp",
@@ -65,7 +65,6 @@ cc_test {
65 }, 65 },
66 }, 66 },
67 67
68 cppflags: libprocinfo_cppflags,
69 shared_libs: ["libbase", "libprocinfo"], 68 shared_libs: ["libbase", "libprocinfo"],
70 69
71 compile_multilib: "both", 70 compile_multilib: "both",