bsps/riscv/niosv/flash/altera_epcq_driver.c: Variable unused after read

The driver was reading from memory and GCC warning that the value
read was ignored. Added annotation to indicate this was intentional.
This commit is contained in:
Joel Sherrill
2025-07-17 16:30:15 -05:00
committed by Kinsey Moore
parent 5e2ac1584e
commit 0a5890c623

View File

@@ -601,6 +601,7 @@ static int alt_epcq_controller2_write_block (
EPCQ_MEM_32[write_offset_32] = word_to_write;
alt_epcq_poll_for_write_in_progress(epcq_flash_info);
dummy_read = EPCQ_MEM_32[write_offset_32];
(void) dummy_read;
}
/* check whether write triggered a illegal write interrupt */