mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
tests/parse_hex4: Fix GCC 7 compiler warning (fixes #179)
This commit is contained in:
parent
82295f9e4f
commit
bfbd8fe0d8
@ -41,6 +41,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
|
||||
-Wcomma
|
||||
-Wdouble-promotion
|
||||
-Wparentheses
|
||||
-Wformat-overflow
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -31,8 +31,8 @@
|
||||
static void parse_hex4_should_parse_all_combinations(void)
|
||||
{
|
||||
unsigned int number = 0;
|
||||
unsigned char digits_lower[5];
|
||||
unsigned char digits_upper[5];
|
||||
unsigned char digits_lower[6];
|
||||
unsigned char digits_upper[6];
|
||||
/* test all combinations */
|
||||
for (number = 0; number <= 0xFFFF; number++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user