diff options
author | Chih-Hung Hsieh <chh@google.com> | 2017-10-02 15:20:07 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2017-11-01 11:32:55 -0700 |
commit | 122352d983805b8ded5f8f3c07e75844244aba40 (patch) | |
tree | 2512a37968404bd39265da943bee33e33e064744 /libasyncio | |
parent | 15251c24b9cbb809aad74d8e5796f0eb6d83d8bb (diff) | |
download | core-122352d983805b8ded5f8f3c07e75844244aba40.tar.gz core-122352d983805b8ded5f8f3c07e75844244aba40.tar.bz2 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.bp | 11 |
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 @@ // limitations under the License. // -libasyncio_cppflags = [ - "-Wall", - "-Wextra", - "-Werror", -] +cc_defaults { + name: "libasyncio_defaults", + cflags: ["-Wall", "-Werror", "-Wextra"], +} cc_library { name: "libasyncio", + defaults: ["libasyncio_defaults"], vendor_available: true, host_supported: true, srcs: [ "AsyncIO.cpp", ], - cppflags: libasyncio_cppflags, export_include_dirs: ["include"], target: { |