Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ void sys_tick_handler(void)
{
if (paused && !single_step) return;

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
// user_data is declared with a (mis)computed size of 0 elements, but it's
// really a marker for the start of a flash region sized by the linker/flash
// layout, not by this C type - see declaration above.
struct composite_report report = user_data[report_index];
#pragma GCC diagnostic pop
uint16_t len = 0;
uint8_t id = report.report_id;

Expand Down