mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-05 13:40:40 +02:00
cli: fix warning in parse_output_fields() about strict-overflow
gcc warns:
make[4]: Entering directory `./NetworkManager/cli/src'
CC utils.o
utils.c: In function ‘parse_output_fields’:
utils.c:707:7: error: assuming signed overflow does not occur when simplifying conditional to constant [-Werror=strict-overflow]
if (found) {
^
Signed-off-by: Thomas Haller <thaller@redhat.com>
(cherry picked from commit ef24273104)
This commit is contained in:
parent
510bd4a911
commit
e6767f3ee1
1 changed files with 2 additions and 2 deletions
|
|
@ -700,9 +700,9 @@ parse_output_fields (const char *fields_str,
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (found)
|
||||
break;
|
||||
}
|
||||
if (found)
|
||||
break;
|
||||
}
|
||||
if (found) {
|
||||
/* Add index to array, and field name (or NULL) to group_fields array */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue