forked from armink-rtt-pkgs/micropython
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
I have been trying to compile microPython for qemu-vexpress-a9, and have run into a problem.
Compilation fails here:
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_lcd.o
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_pin.o
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_pwm.o
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_rtc.o
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_timer.o
CC build/packages/micropython-v1.13.0/port/modules/machine/machine_uart.o
packages/micropython-v1.13.0/port/modules/machine/machine_uart.c: In function 'machine_uart_ioctl':
packages/micropython-v1.13.0/port/modules/machine/machine_uart.c:253:12: error: return makes integer from pointer without a cast [-Werror=int-conversion]
return NULL;
^~~~
cc1: all warnings being treated as errors
scons: *** [build/packages/micropython-v1.13.0/port/modules/machine/machine_uart.o] Error 1
scons: building terminated because of errors.
The offending line of source code is here:
| return NULL; |
STATIC mp_uint_t machine_uart_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode) {
return NULL;
}
In all other cases I can find in the RT-Thread microPython port, a function defined as "STATIC mp_uint_t" must have a numeric return value, for example
return -1;
micropython/extmod/machine_signal.c
Line 132 in 07ab039
| return -1; |
Please advise.
Metadata
Metadata
Assignees
Labels
No labels