Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8abd067 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

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
parent fccdf46a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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: {
+3 −0
Original line number Diff line number Diff line
@@ -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",
    ],
}

+2 −0
Original line number Diff line number Diff line
@@ -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: [
+2 −0
Original line number Diff line number Diff line
@@ -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: [