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

Commit a1ff1045 authored by Chih-hung Hsieh's avatar Chih-hung Hsieh Committed by android-build-merger
Browse files

Merge "Use -Werror in frameworks/native/libs"

am: b6dabc88

Change-Id: Ie165a18da9b36942653062ac7529080851c8efc5
parents 4d6eccdc b6dabc88
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -15,4 +15,5 @@
cc_library_static {
cc_library_static {
    name: "libdiskusage",
    name: "libdiskusage",
    srcs: ["dirsize.c"],
    srcs: ["dirsize.c"],
    cflags: ["-Wall", "-Werror"],
}
}
+2 −0
Original line number Original line Diff line number Diff line
@@ -19,6 +19,8 @@ cc_library_shared {
        "GraphicsEnv.cpp",
        "GraphicsEnv.cpp",
    ],
    ],


    cflags: ["-Wall", "-Werror"],

    shared_libs: [
    shared_libs: [
        "libnativeloader",
        "libnativeloader",
        "liblog",
        "liblog",
+5 −1
Original line number Original line Diff line number Diff line
@@ -17,9 +17,13 @@ cc_library_shared {
    vendor: true,
    vendor: true,


    clang: true,
    clang: true,
    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-user-defined-warnings",
    ],
    cppflags: [
    cppflags: [
        "-Weverything",
        "-Weverything",
        "-Wall",
        "-Wunused",
        "-Wunused",
        "-Wunreachable-code",
        "-Wunreachable-code",


+8 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,12 @@ cc_test {
        "InputEvent_test.cpp",
        "InputEvent_test.cpp",
        "InputPublisherAndConsumer_test.cpp",
        "InputPublisherAndConsumer_test.cpp",
    ],
    ],
    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-error=sign-compare", // to fix later
        "-Wno-unused-variable",
    ],
    shared_libs: [
    shared_libs: [
        "libinput",
        "libinput",
        "libcutils",
        "libcutils",
@@ -24,5 +30,7 @@ cc_library_static {
    srcs: ["StructLayout_test.cpp"],
    srcs: ["StructLayout_test.cpp"],
    cflags: [
    cflags: [
        "-O0",
        "-O0",
        "-Wall",
        "-Werror",
    ],
    ],
}
}
+4 −0
Original line number Original line Diff line number Diff line
@@ -18,22 +18,26 @@ cc_test {
    name: "vec_test",
    name: "vec_test",
    srcs: ["vec_test.cpp"],
    srcs: ["vec_test.cpp"],
    static_libs: ["libmath"],
    static_libs: ["libmath"],
    cflags: ["-Wall", "-Werror"],
}
}


cc_test {
cc_test {
    name: "mat_test",
    name: "mat_test",
    srcs: ["mat_test.cpp"],
    srcs: ["mat_test.cpp"],
    static_libs: ["libmath"],
    static_libs: ["libmath"],
    cflags: ["-Wall", "-Werror"],
}
}


cc_test {
cc_test {
    name: "half_test",
    name: "half_test",
    srcs: ["half_test.cpp"],
    srcs: ["half_test.cpp"],
    static_libs: ["libmath"],
    static_libs: ["libmath"],
    cflags: ["-Wall", "-Werror"],
}
}


cc_test {
cc_test {
    name: "quat_test",
    name: "quat_test",
    srcs: ["quat_test.cpp"],
    srcs: ["quat_test.cpp"],
    static_libs: ["libmath"],
    static_libs: ["libmath"],
    cflags: ["-Wall", "-Werror"],
}
}