diff options
| author | Petr Štetiar | 2019-11-04 23:28:15 +0000 |
|---|---|---|
| committer | Petr Štetiar | 2019-11-14 16:11:34 +0000 |
| commit | 7736f497d2d9a43cd36526c8d8a12718eff2e6c7 (patch) | |
| tree | 2f458e7da8eb2cb355684ffe82a42be1d26b273e | |
| parent | 39093f3b040df895da812e2932b55feeeb1201df (diff) | |
| download | uci-7736f497d2d9a43cd36526c8d8a12718eff2e6c7.tar.gz | |
cli: remove unused variable assigment
scan-build from clang version 9 has reported following issue:
cli.c:574:8: warning: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
if ((ret = uci_parse_argument(ctx, input, &str, &argv[i])) != UCI_OK) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Petr Štetiar <ynezz@true.cz>
| -rw-r--r-- | cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -571,7 +571,7 @@ static int uci_batch_cmd(void) return 1; } argv[i] = NULL; - if ((ret = uci_parse_argument(ctx, input, &str, &argv[i])) != UCI_OK) { + if (uci_parse_argument(ctx, input, &str, &argv[i]) != UCI_OK) { cli_perror(); i = 0; break; |