Commit 3ca0131
committed
Fix mpy-cross compile error with GCC13.
- GCC13 reports the following error when compiling mpy-cross:
main.c:313:6: error: conflicting types for ‘mp_import_stat’ due to enum/integer mismatch; have ‘uint(const char *)’ {aka ‘unsigned int(const char *)’} [-Werror=enum-int-mismatch]
313 | uint mp_import_stat(const char *path) {
| ^~~~~~~~~~~~~~
In file included from ../py/compile.h:29,
from main.c:11:
../py/lexer.h:205:18: note: previous declaration of ‘mp_import_stat’ with type ‘mp_import_stat_t(const char *)’
205 | mp_import_stat_t mp_import_stat(const char *path);
| ^~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [../py/mkrules.mk:62: build/main.o] Error 11 parent 33ddf50 commit 3ca0131
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
313 | | - | |
| 313 | + | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| |||
0 commit comments