py/stackctrl: Add gcc pragmas to ignore dangling-pointer warning.
This commit is contained in:
parent
52c11cf4e0
commit
16444e222d
@ -28,8 +28,15 @@
|
||||
#include "py/stackctrl.h"
|
||||
|
||||
void mp_stack_ctrl_init(void) {
|
||||
#if __GNUC__ >= 13
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdangling-pointer"
|
||||
#endif
|
||||
volatile int stack_dummy;
|
||||
MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;
|
||||
#if __GNUC__ >= 13
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
}
|
||||
|
||||
void mp_stack_set_top(void *top) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user