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

Commit 5ee8d9fd authored by Chris Manton's avatar Chris Manton
Browse files

Suppress warnings for cross compiled targets

Bug: 162114100
Tag: #refactor
Test: gd/cert/run

Change-Id: Iee133d10030b0b7be5b50246352779429a665687
parent 7c489a83
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -118,6 +118,18 @@ cc_defaults {
    ],
}

// Clang is targeted for android core libraries but other base libraries
// may not support clang tidy recommendations (e.g. MacOS)
cc_defaults {
    name: "gd_clang_tidy_ignore_android",
    tidy: true,
    tidy_checks: [
        "-android-cloexec-pipe2", //  warning: 'pipe2' should use O_CLOEXEC where possible
        "-android-cloexec-accept", // warning: prefer accept4() to accept() because accept4() allows SOCK_CLOEXEC
        "-android-cloexec-socket",  // warning: 'pipe2' should use O_CLOEXEC where possible
    ],
}

cc_defaults {
    name: "libbluetooth_gd_defaults",
    defaults: [
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ cc_library_static {
    defaults: [
        "gd_defaults",
        "gd_clang_tidy",
        "gd_clang_tidy_ignore_android",
    ],
    host_supported: true,
    proprietary: true,