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

Commit cc888a22 authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "Replace -Weverything with -Wextra"

am: 39a5c06e

Change-Id: I62204af80b72abccbb3fa6c3012c2a600ad12889
parents b72546c2 39a5c06e
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -119,12 +119,7 @@ cc_test {
    srcs: ["binderSafeInterfaceTest.cpp"],

    cppflags: [
        "-Weverything",
        "-Wno-c++98-compat",
        "-Wno-c++98-compat-pedantic",
        "-Wno-global-constructors",
        "-Wno-padded",
        "-Wno-weak-vtables",
        "-Wextra",
    ],

    cpp_std: "experimental",
+1 −16
Original line number Diff line number Diff line
@@ -21,22 +21,7 @@ cc_library_shared {
        "-Werror",
    ],
    cppflags: [
        "-Weverything",

        // The static constructors and destructors in this library have not been noted to
        // introduce significant overheads
        "-Wno-exit-time-destructors",
        "-Wno-global-constructors",

        // We only care about compiling as C++14
        "-Wno-c++98-compat-pedantic",

        // android/sensors.h uses nested anonymous unions and anonymous structs
        "-Wno-nested-anon-types",
        "-Wno-gnu-anonymous-struct",

        // Don't warn about struct padding
        "-Wno-padded",
        "-Wextra",
    ],

    srcs: [
+1 −22
Original line number Diff line number Diff line
@@ -26,28 +26,7 @@ cc_library_shared {
        "-Werror",
    ],
    cppflags: [
        "-Weverything",

        // The static constructors and destructors in this library have not been noted to
        // introduce significant overheads
        "-Wno-exit-time-destructors",
        "-Wno-global-constructors",

        // We only care about compiling as C++14
        "-Wno-c++98-compat-pedantic",

        // We are aware of the risks inherent in comparing floats for equality
        "-Wno-float-equal",

        // We use four-character constants for the GraphicBuffer header, and don't care
        // that they're non-portable as long as they're consistent within one execution
        "-Wno-four-char-constants",

        // Don't warn about struct padding
        "-Wno-padded",

        "-Wno-switch-enum",
        "-Wno-format-pedantic",
        "-Wextra",
    ],

    sanitize: {
+4 −3
Original line number Diff line number Diff line
@@ -41,12 +41,13 @@ cc_library_shared {
        "-DVK_NO_PROTOTYPES",
        "-fvisibility=hidden",
        "-fstrict-aliasing",
        "-Weverything",
        "-Wextra",
        "-Werror",
        "-Wno-padded",
        "-Wno-sign-compare",
        "-Wno-switch-enum",
        "-Wno-undef",
        "-Wno-format-pedantic",
        "-Wno-unused-variable",
        "-Wno-unused-function",

        // Have clang emit complete debug_info.
        "-fstandalone-debug",