mirror of
https://github.com/andreili/katapult.git
synced 2025-08-24 03:44:06 +02:00
armcm_boot: fix array bounds warning
Arm GCC 11.2 generates an array bounds warning when dereferencing a 64-bit pointer. Selectively disable the warning when handling the bootup code. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
a8c83c519c
commit
88c5107818
@ -19,6 +19,9 @@ extern uint32_t _data_start, _data_end, _data_flash;
|
|||||||
extern uint32_t _bss_start, _bss_end, _stack_start;
|
extern uint32_t _bss_start, _bss_end, _stack_start;
|
||||||
extern uint32_t _stack_end;
|
extern uint32_t _stack_end;
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Warray-bounds"
|
||||||
|
|
||||||
uint64_t
|
uint64_t
|
||||||
get_bootup_code(void)
|
get_bootup_code(void)
|
||||||
{
|
{
|
||||||
@ -34,6 +37,8 @@ set_bootup_code(uint64_t code)
|
|||||||
barrier();
|
barrier();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
// Helper function to read area of flash
|
// Helper function to read area of flash
|
||||||
void
|
void
|
||||||
application_read_flash(uint32_t address, uint32_t *dest)
|
application_read_flash(uint32_t address, uint32_t *dest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user