HAL_ChibiOS: fixed build error with gcc 11.3
This commit is contained in:
parent
b5b1aee954
commit
e5b46eb2a7
@ -85,7 +85,13 @@ void malloc_init(void)
|
||||
// check for changes which indicate a write to an uninitialised
|
||||
// object. We start at address 0x1 as writing the first byte
|
||||
// causes a fault
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||
#if defined(__GNUC__) && __GNUC__ >= 10
|
||||
#pragma GCC diagnostic ignored "-Wstringop-overflow"
|
||||
#endif
|
||||
memset((void*)0x00000001, 0, 1023);
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
uint8_t i;
|
||||
|
Loading…
Reference in New Issue
Block a user