Browse Source

examples: remove dead increments

Fixes following error reported by clang-9 analyzer:

 examples/server.c:244:2: warning: Value stored to 'argc' is never read
        argc -= optind;
        ^       ~~~~~~

 examples/server.c:245:2: warning: Value stored to 'argv' is never read
        argv += optind;
        ^       ~~~~~~

Signed-off-by: Petr Štetiar <ynezz@true.cz>
master
Petr Štetiar 1 year ago
parent
commit
afd47189e8
2 changed files with 0 additions and 6 deletions
  1. +0
    -3
      examples/client.c
  2. +0
    -3
      examples/server.c

+ 0
- 3
examples/client.c View File

@ -220,9 +220,6 @@ int main(int argc, char **argv)
}
}
argc -= optind;
argv += optind;
uloop_init();
ctx = ubus_connect(ubus_socket);


+ 0
- 3
examples/server.c View File

@ -241,9 +241,6 @@ int main(int argc, char **argv)
}
}
argc -= optind;
argv += optind;
uloop_init();
signal(SIGPIPE, SIG_IGN);


Loading…
Cancel
Save