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

Commit 9418fd18 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

libsysutils: turn on -Werror

- Deal with some -Wunused / -Wunused-variable issues

Change-Id: I428a0032a8743c68c97f528d5f305ba63fee1d29
parent f3661cc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ LOCAL_MODULE:= libsysutils

LOCAL_C_INCLUDES :=

LOCAL_CFLAGS :=
LOCAL_CFLAGS := -Werror

LOCAL_SHARED_LIBRARIES := libcutils liblog

+1 −2
Original line number Diff line number Diff line
@@ -92,7 +92,6 @@ void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) {
    char *qlimit = tmp + sizeof(tmp) - 1;
    bool esc = false;
    bool quote = false;
    int k;
    bool haveCmdNum = !mWithSeq;

    memset(argv, 0, sizeof(argv));
@@ -166,7 +165,7 @@ void FrameworkListener::dispatchCommand(SocketClient *cli, char *data) {
        goto overflow;
    argv[argc++] = strdup(tmp);
#if 0
    for (k = 0; k < argc; k++) {
    for (int k = 0; k < argc; k++) {
        SLOGD("arg[%d] = '%s'", k, argv[k]);
    }
#endif
+0 −1
Original line number Diff line number Diff line
@@ -399,7 +399,6 @@ bool NetlinkEvent::parseAsciiNetlinkMessage(char *buffer, int size) {
    const char *s = buffer;
    const char *end;
    int param_idx = 0;
    int i;
    int first = 1;

    if (size == 0)