Guard GCC13 pragma
This commit is contained in:
parent
f837f2438a
commit
18207cd547
|
@ -31,7 +31,10 @@ void mp_stack_ctrl_init(void) {
|
|||
// Force routine to not be inlined. Better guarantee than MP_NOINLINE for -flto.
|
||||
__asm volatile ("");
|
||||
#pragma GCC diagnostic push
|
||||
#if __GNUC__ > 12
|
||||
// Introduced in GCC 13
|
||||
#pragma GCC diagnostic ignored "-Wdangling-pointer"
|
||||
#endif
|
||||
volatile int stack_dummy;
|
||||
MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
|
||||
#pragma GCC diagnostic pop
|
||||
|
|
Loading…
Reference in New Issue