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 /libasyncio
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 'libasyncio')
-rw-r--r--libasyncio/Android.bp11
1 files changed, 5 insertions, 6 deletions
diff --git a/libasyncio/Android.bp b/libasyncio/Android.bp
index 9a637acb7..9a12f0d2d 100644
--- a/libasyncio/Android.bp
+++ b/libasyncio/Android.bp
@@ -14,20 +14,19 @@
14// limitations under the License. 14// limitations under the License.
15// 15//
16 16
17libasyncio_cppflags = [ 17cc_defaults {
18 "-Wall", 18 name: "libasyncio_defaults",
19 "-Wextra", 19 cflags: ["-Wall", "-Werror", "-Wextra"],
20 "-Werror", 20}
21]
22 21
23cc_library { 22cc_library {
24 name: "libasyncio", 23 name: "libasyncio",
24 defaults: ["libasyncio_defaults"],
25 vendor_available: true, 25 vendor_available: true,
26 host_supported: true, 26 host_supported: true,
27 srcs: [ 27 srcs: [
28 "AsyncIO.cpp", 28 "AsyncIO.cpp",
29 ], 29 ],
30 cppflags: libasyncio_cppflags,
31 30
32 export_include_dirs: ["include"], 31 export_include_dirs: ["include"],
33 target: { 32 target: {