From bac0a67221d2c9b0af47fd443dc97430bfcce04d Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Tue, 18 Jun 2024 13:29:08 +0200 Subject: [PATCH] mptable: abide GCC diagnostic false positive --- src/x86/mptable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x86/mptable.c b/src/x86/mptable.c index 9bf5e3e3f..f889fd8dd 100644 --- a/src/x86/mptable.c +++ b/src/x86/mptable.c @@ -499,7 +499,10 @@ void mptable_setup(void) x86_log_memory_load((uint32_t)MPTABLE_LOAD_BASE, (uint32_t)MPTABLE_LOAD_BASE + sizeof(struct mptable), "MPTABLE"); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" memcpy(_mp, (void*)&_mptable, sizeof(struct mptable)); +#pragma GCC diagnostic pop apic_id = mmio_read32(LOCAL_APIC_ID); apic_ver = mmio_read32(LOCAL_APIC_VER);