This keeps the behavior intact while eliminating the warning.
---
i386/i386/smp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/i386/i386/smp.c b/i386/i386/smp.c
index e3e4cc82..53d9b876 100644
--- a/i386/i386/smp.c
+++ b/i386/i386/smp.c
@@ -134,6 +134,8 @@ smp_send_ipi_startup_twice(int bsp_apic_id, int vector)
for (i = 0; i < 2; i++) {
lapic->error_status.r = 0;
err = lapic->error_status.r;
+ /* Suppress unused variable warning for the necessary dummy read.*/
+ (void) err;
/* StartUp IPI:
*
--
2.40.1