Skip to content

Commit 8485667

Browse files
committed
Fix gcc warning about VLA
TIL: const are not really const in C
1 parent 3c5178e commit 8485667

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit-test.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
#define SERVER_ID 17
2828
#define INVALID_SERVER_ID 18
2929

30+
#define UT_BITS_NB 0x25
3031
const uint16_t UT_BITS_ADDRESS = 0x130;
31-
const uint16_t UT_BITS_NB = 0x25;
3232
const uint8_t UT_BITS_TAB[] = { 0xCD, 0x6B, 0xB2, 0x0E, 0x1B };
3333
const uint16_t UT_BITS_ADDRESS_INVALID_REQUEST_LENGTH = UT_BITS_ADDRESS + 2;
3434

0 commit comments

Comments
 (0)