SunOS: silence some warnings

Give `-Wformat=0` on illumos/Solaris so that the build does not
complain about `execlp` not having a sentinel (it's nil).  Also
fix an integer size issue when casting to a void pointer.
This commit is contained in:
Dan Cross
2025-07-25 18:45:10 +00:00
parent 9d2e0d31f7
commit b2fc88d60a
2 changed files with 2 additions and 2 deletions

2
bin/9c
View File

@@ -138,7 +138,7 @@ case "$tag" in
u=`uname`
v=`uname -r`
s=`echo $u$v | tr '. ' '__'`
cflags="$cflags -g"
cflags="$cflags -g -Wformat=0"
cflags="$cflags -D__sun__ -D__${s}__"
;;
*AIX*) usexlc