Opened 11 months ago
#72735 new defect
janet fails to build: error: passing argument 2 of 'host_get_clock_service' makes integer from pointer without a cast [-Wint-conversion]
| Reported by: | barracuda156 | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.11.3 |
| Keywords: | Cc: | tsujp (Jordan Ellis Coppard) | |
| Port: | janet |
Description
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_janet/janet/work/compwrap/cc/opt/local/bin/gcc-mp-14 -Os -arch ppc -std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fvisibility=hidden -fPIC -c build/c/shell.c -o build/shell.o
src/core/util.c: In function 'janet_gettime':
src/core/util.c:929:50: error: passing argument 2 of 'host_get_clock_service' makes integer from pointer without a cast [-Wint-conversion]
929 | host_get_clock_service(mach_host_self(), clock, &cclock);
| ^~~~~
| |
| clock_t (*)(void) {aka long unsigned int (*)(void)}
In file included from /usr/include/mach/mach.h:70,
from src/core/util.c:915:
/usr/include/mach/mach_host.h:137:20: note: expected 'clock_id_t' {aka 'int'} but argument is of type 'clock_t (*)(void)' {aka 'long unsigned int (*)(void)'}
137 | clock_id_t clock_id,
| ~~~~~~~~~~~^~~~~~~~
make: *** [build/core/util.boot.o] Error 1
make: *** Waiting for unfinished jobs....
Note: See
TracTickets for help on using
tickets.
