Add -Wcomma compiler flag

This commit is contained in:
Max Bruckner
2017-03-01 08:36:34 +01:00
parent 899529e866
commit b056d7cb74
5 changed files with 14 additions and 13 deletions

View File

@ -68,7 +68,7 @@ static int cJSON_strcasecmp(const unsigned char *s1, const unsigned char *s2)
{
return 1;
}
for(; tolower(*s1) == tolower(*s2); ++s1, ++s2)
for(; tolower(*s1) == tolower(*s2); (void)++s1, ++s2)
{
if (*s1 == '\0')
{
@ -731,7 +731,7 @@ static unsigned char *print_string_ptr(const unsigned char * const input, printb
output[0] = '\"';
output_pointer = output + 1;
/* copy the string */
for (input_pointer = input; *input_pointer != '\0'; input_pointer++, output_pointer++)
for (input_pointer = input; *input_pointer != '\0'; (void)input_pointer++, output_pointer++)
{
if ((*input_pointer > 31) && (*input_pointer != '\"') && (*input_pointer != '\\'))
{