diff --git a/mpy-cross/main.c b/mpy-cross/main.c index 635e53a719cc9..eba329027c6f7 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -339,7 +339,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 c2f3adb5eedcd..9c4f67b3134df 100644 --- a/py/stackctrl.c +++ b/py/stackctrl.c @@ -27,6 +27,7 @@ #include "py/runtime.h" #include "py/stackctrl.h" +#pragma GCC diagnostic ignored "-Wdangling-pointer=1" void mp_stack_ctrl_init(void) { volatile int stack_dummy; MP_STATE_THREAD(stack_top) = (char *)&stack_dummy;