From ef242731048406e84fa89719ef882ad154c940ea Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Sun, 27 Jul 2014 02:49:40 +0200 Subject: [PATCH] cli: fix warning in parse_output_fields() about strict-overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- clients/cli/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/cli/utils.c b/clients/cli/utils.c index 9b513f5a08..d6f804ca49 100644 --- a/clients/cli/utils.c +++ b/clients/cli/utils.c @@ -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 */