Skip to content

Commit a413cc1

Browse files
committed
mptable: abide GCC diagnostic false positive
1 parent dbdb08b commit a413cc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/x86/mptable.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,10 @@ void mptable_setup(void)
499499
x86_log_memory_load((uint32_t)MPTABLE_LOAD_BASE,
500500
(uint32_t)MPTABLE_LOAD_BASE + sizeof(struct mptable),
501501
"MPTABLE");
502+
#pragma GCC diagnostic push
503+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
502504
memcpy(_mp, (void*)&_mptable, sizeof(struct mptable));
505+
#pragma GCC diagnostic pop
503506
apic_id = mmio_read32(LOCAL_APIC_ID);
504507
apic_ver = mmio_read32(LOCAL_APIC_VER);
505508

0 commit comments

Comments
 (0)