remove arm-gcc 12.1 warning: array subscript -512 is outside array bounds of 'uint32_t[536870911]

This commit is contained in:
Philippe Teuwen 2022-05-12 23:14:37 +02:00
parent 05e48b07cc
commit db21576612

View file

@ -2477,7 +2477,7 @@ void __attribute__((noreturn)) AppMain(void) {
SpinDelay(100); SpinDelay(100);
BigBuf_initialize(); BigBuf_initialize();
for (uint32_t *p = _stack_start; p < _stack_end - 0x200; ++p) { for (uint32_t *p = _stack_start; p + 0x200 < _stack_end ; ++p) {
*p = 0xdeadbeef; *p = 0xdeadbeef;
} }