Skip to content

Commit

Permalink
tests/parse_hex4: Fix GCC 7 compiler warning (fixes #179)
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Jun 4, 2017
1 parent 82295f9 commit bfbd8fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ if (ENABLE_CUSTOM_COMPILER_FLAGS)
-Wcomma
-Wdouble-promotion
-Wparentheses
-Wformat-overflow
)
endif()

Expand Down
4 changes: 2 additions & 2 deletions tests/parse_hex4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
{
Expand Down

0 comments on commit bfbd8fe

Please sign in to comment.