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

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

Use -Werror in frameworks/base

* Fix unused variable and return value warnings.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I890e65a20848d00559ba5a4f9691be1347b456af
parent 26817938
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -34,6 +34,11 @@ cc_library {
        include_dirs: ["external/protobuf/src"],
    },

    cflags: [
        "-Wall",
        "-Werror",
        "-Wno-unused-parameter",
    ],
    target: {
        host: {
            proto: {
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
cc_library_host_static {
    name: "libinstrumentation",
    srcs: ["**/*.proto"],
    cflags: ["-Wall", "-Werror"],
    proto: {
        type: "full",
        export_proto_headers: true,
+5 −0
Original line number Diff line number Diff line
@@ -30,6 +30,11 @@ cc_binary_host {
        "util.cpp",
    ],

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

    static_libs: [
        "libexpat",
        "libinstrumentation",
+3 −1
Original line number Diff line number Diff line
@@ -293,7 +293,9 @@ run_instrumentation_test(const string& packageName, const string& runner, const
    print_command(cmd);

    int fds[2];
    pipe(fds);
    if (0 != pipe(fds)) {
        return errno;
    }

    pid_t pid = fork();

+3 −1
Original line number Diff line number Diff line
@@ -105,7 +105,9 @@ get_command_output(const Command& command, int* err, bool quiet)
    }

    int fds[2];
    pipe(fds);
    if (0 != pipe(fds)) {
        return string();
    }

    pid_t pid = fork();

Loading