From 6b249213dd1bfdb0f2791eec20c65aa4bb4ce301 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Mon, 15 Apr 2019 00:06:35 +0200 Subject: [PATCH] Fix clang -Wcomma warning --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 571f856c..b0bc3e87 100644 --- a/cJSON.c +++ b/cJSON.c @@ -2673,7 +2673,7 @@ static void minify_string(char **input, char **output) { *output += static_strlen("\""); - for (; (*input)[0] != '\0'; ++(*input), ++(*output)) { + for (; (*input)[0] != '\0'; (void)++(*input), ++(*output)) { (*output)[0] = (*input)[0]; if ((*input)[0] == '\"') {