From 0a5890c623a2ad4a533482503d566b95828865e6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 17 Jul 2025 16:30:15 -0500 Subject: [PATCH] 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. --- bsps/riscv/niosv/flash/altera_epcq_driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/riscv/niosv/flash/altera_epcq_driver.c b/bsps/riscv/niosv/flash/altera_epcq_driver.c index 31f61a7642..61d1df02fc 100644 --- a/bsps/riscv/niosv/flash/altera_epcq_driver.c +++ b/bsps/riscv/niosv/flash/altera_epcq_driver.c @@ -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 */