Allow implicit-fallthrough warnings locally.

It will be a global error by default.

Test: make checkbuild
Bug: 112564944
Change-Id: I26616fd50ccf3639fa7c01d850a14d079273ede7
Exempt-From-Owner-Approval: do not block on new warnings
This commit is contained in:
Chih-Hung Hsieh
2018-10-22 09:56:12 -07:00
parent fccdf46adf
commit e8abd06776
4 changed files with 9 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ 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: {

View File

@@ -83,6 +83,9 @@ cc_library_shared {
"-Wno-error=deprecated-declarations",
"-Wunused",
"-Wunreachable-code",
// Allow implicit fallthroughs in android_media_MediaScanner.cpp and
// android_mtp_MtpDatabase.cpp until they are fixed.
"-Wno-error=implicit-fallthrough",
],
}

View File

@@ -71,6 +71,8 @@ cc_library_host_static {
cflags: [
"-Wno-format-y2k",
"-DSTATIC_ANDROIDFW_FOR_TOOLS",
// Allow implicit fallthroughs in AaptAssets.cpp until they are fixed.
"-Wno-error=implicit-fallthrough",
],
srcs: [

View File

@@ -24,6 +24,8 @@ cc_binary_host {
"-O0",
"-Wall",
"-Werror",
// Allow implicit fallthroughs in main.cpp until they are fixed.
"-Wno-error=implicit-fallthrough",
],
srcs: ["main.cpp"],
shared_libs: [