summaryrefslogtreecommitdiff
path: root/libs/androidfw/Android.bp
diff options
context:
space:
mode:
authorMÃ¥rten Kongstad <marten.kongstad@sony.com>2018-10-18 14:50:15 +0200
committerTodd Kennedy <toddke@google.com>2018-11-12 13:07:08 -0800
commite0930d324c9c35546d6940e0ddc8f3e0bd850614 (patch)
tree53d67221fec06166760f83ca30faaf86cc6c313a /libs/androidfw/Android.bp
parentb4c2dc0c1fc09acabfffa1f239e8fa48c75aecae (diff)
libandroidfw: add FALLTHROUGH_INTENDED to silence warnings
Add FALLTHROUGH_INTENDED to silence compiler warnings such as the following: -------- 8< -------- [ 42% 27/63] //frameworks/base/libs/androidfw:libandroidfw clang++ Locale.cpp frameworks/base/libs/androidfw/Locale.cpp:166:7: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 5: ^ frameworks/base/libs/androidfw/Locale.cpp:166:7: note: insert 'FALLTHROUGH_INTENDED;' to silence this warning case 5: ^ FALLTHROUGH_INTENDED; frameworks/base/libs/androidfw/Locale.cpp:166:7: note: insert 'break;' to avoid fall-through case 5: ^ break; 1 warning generated. -------- >8 -------- Test: 'make libandroidfw' builds with no compiler warnings Change-Id: I6bc67f2c072f88c9f1a92b7378a6f1a460db70b4
Diffstat (limited to 'libs/androidfw/Android.bp')
-rw-r--r--libs/androidfw/Android.bp2
1 files changed, 0 insertions, 2 deletions
diff --git a/libs/androidfw/Android.bp b/libs/androidfw/Android.bp
index 92efb6ba8914..98af3eb05391 100644
--- a/libs/androidfw/Android.bp
+++ b/libs/androidfw/Android.bp
@@ -59,8 +59,6 @@ cc_library {
"ZipFileRO.cpp",
"ZipUtils.cpp",
],
- // Allow implicit fallthroughs in Locale.cpp and ResourceTypes.cpp until they are fixed.
- cflags: ["-Wno-implicit-fallthrough"],
export_include_dirs: ["include"],
export_shared_lib_headers: ["libz"],
target: {