Skip to content

Commit 3ca0131

Browse files
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 1
1 parent 33ddf50 commit 3ca0131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpy-cross/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ int main(int argc, char **argv) {
310310
return main_(argc, argv);
311311
}
312312

313-
uint mp_import_stat(const char *path) {
313+
mp_import_stat_t mp_import_stat(const char *path) {
314314
(void)path;
315315
return MP_IMPORT_STAT_NO_EXIST;
316316
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy