diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2023-12-28 04:31:19 +0100 |
---|---|---|
committer | Hans-Peter Nilsson <hp@bitrange.com> | 2023-12-29 19:29:20 +0100 |
commit | ddb614993a78bf2cdf2ed269617f7f552490e76f (patch) | |
tree | 9177a14f5cf3fbdad5b33078441dd2c6b9e49bc9 /newlib/acinclude.m4 | |
parent | 1a177610d8e181d09206a5a8ce2d873822751657 (diff) | |
download | newlib-ddb614993a78bf2cdf2ed269617f7f552490e76f.zip newlib-ddb614993a78bf2cdf2ed269617f7f552490e76f.tar.gz newlib-ddb614993a78bf2cdf2ed269617f7f552490e76f.tar.bz2 |
newlib MMIX: Fix compilation warnings that recent gcc treats as errors
Without this, when building with recent gcc, we'll see errors when
compiling for --target mmix the first being:
CC libc/sys/mmixware/libc_a-chmod.o
In file included from /x/newlib/libc/sys/mmixware/chmod.c:17:
/x/newlib/libc/sys/mmixware/chmod.c: In function 'chmod':
/x/newlib/libc/sys/mmixware/sys/syscall.h:139:6: error: implicit declaration \
of function 'sprintf' [-Wimplicit-function-declaration]
139 | sprintf (buf, "UNIMPLEMENTED %s in %s\n", __FUNCTION__,
__FILE__); \
Other warnings also quelled.
* libc/sys/mmixware/sys/syscall.h: Include stdio.h, string.h
and unistd.h.
* libc/sys/mmixware/_exit.c: Call __unreachable after simulator exit.
* libc/sys/mmixware/chown.c (chown): Match declaration in unistd.h.
* libc/sys/mmixware/getpid.c (_getpid): Ditto.
* libc/sys/mmixware/kill.c (_kill): Ditto.
* libc/sys/mmixware/link.c (_link): Ditto.
* libc/sys/mmixware/read.c (_read): Ditto.
* libc/sys/mmixware/sbrk.c (_sbrk): Ditto.
* libc/sys/mmixware/unlink.c (_unlink): Ditto.
* libc/sys/mmixware/write.c (_write): Ditto.
Diffstat (limited to 'newlib/acinclude.m4')
0 files changed, 0 insertions, 0 deletions