mirror of
https://github.com/DaveGamble/cJSON.git
synced 2025-01-13 18:57:57 +08:00
Fix clang -Wcomma warning
This commit is contained in:
parent
09ebae8149
commit
6b249213dd
2
cJSON.c
2
cJSON.c
@ -2673,7 +2673,7 @@ static void minify_string(char **input, char **output) {
|
|||||||
*output += static_strlen("\"");
|
*output += static_strlen("\"");
|
||||||
|
|
||||||
|
|
||||||
for (; (*input)[0] != '\0'; ++(*input), ++(*output)) {
|
for (; (*input)[0] != '\0'; (void)++(*input), ++(*output)) {
|
||||||
(*output)[0] = (*input)[0];
|
(*output)[0] = (*input)[0];
|
||||||
|
|
||||||
if ((*input)[0] == '\"') {
|
if ((*input)[0] == '\"') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user