diff --git a/mpy-cross/main.c b/mpy-cross/main.c index f3ffff61fdf8..d7ff09c0db05 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -330,7 +330,7 @@ int main(int argc, char **argv) { return main_(argc, argv); } -uint mp_import_stat(const char *path) { +mp_import_stat_t mp_import_stat(const char *path) { (void)path; return MP_IMPORT_STAT_NO_EXIST; } diff --git a/py/stackctrl.c b/py/stackctrl.c index c2f3adb5eedc..c2566ebad92b 100644 --- a/py/stackctrl.c +++ b/py/stackctrl.c @@ -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) {