summaryrefslogtreecommitdiffstats
path: root/libprocinfo
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-10-02 15:20:07 -0700
committerChih-Hung Hsieh <chh@google.com>2017-11-01 11:32:55 -0700
commit122352d983805b8ded5f8f3c07e75844244aba40 (patch)
tree2512a37968404bd39265da943bee33e33e064744 /libprocinfo
parent15251c24b9cbb809aad74d8e5796f0eb6d83d8bb (diff)
downloadsystem_core-122352d983805b8ded5f8f3c07e75844244aba40.tar.gz
system_core-122352d983805b8ded5f8f3c07e75844244aba40.tar.bz2
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 @@
// limitations under the License.
//
-libprocinfo_cppflags = [
- "-Wall",
- "-Wextra",
- "-Werror",
-]
+cc_defaults {
+ name: "libprocinfo_defaults",
+ cflags: ["-Wall", "-Werror", "-Wextra"],
+}
cc_library {
name: "libprocinfo",
+ defaults: ["libprocinfo_defaults"],
vendor_available: true,
vndk: {
enabled: true,
@@ -30,7 +30,6 @@ cc_library {
srcs: [
"process.cpp",
],
- cppflags: libprocinfo_cppflags,
local_include_dirs: ["include"],
export_include_dirs: ["include"],
@@ -52,6 +51,7 @@ cc_library {
// ------------------------------------------------------------------------------
cc_test {
name: "libprocinfo_test",
+ defaults: ["libprocinfo_defaults"],
host_supported: true,
srcs: [
"process_test.cpp",
@@ -65,7 +65,6 @@ cc_test {
},
},
- cppflags: libprocinfo_cppflags,
shared_libs: ["libbase", "libprocinfo"],
compile_multilib: "both",