Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building with GCC 12 #3

Open
wants to merge 2 commits into
base: v1.16-wasp-os
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mpy-cross/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions py/stackctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down