mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Add -Wcomma compiler flag
This commit is contained in:
@ -124,7 +124,7 @@ static void parse_array_should_parse_arrays_with_multiple_elements(void)
|
||||
i = 0;
|
||||
(i < (sizeof(expected_types)/sizeof(int)))
|
||||
&& (node != NULL);
|
||||
i++, node = node->next)
|
||||
(void)i++, node = node->next)
|
||||
{
|
||||
TEST_ASSERT_BITS(0xFF, expected_types[i], node->type);
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ static void parse_object_should_parse_objects_with_multiple_elements(void)
|
||||
i = 0;
|
||||
(i < (sizeof(expected_types)/sizeof(int)))
|
||||
&& (node != NULL);
|
||||
i++, node = node->next)
|
||||
(void)i++, node = node->next)
|
||||
{
|
||||
assert_is_child(node, expected_names[i], expected_types[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user