summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2025-07-25 18:45:10 +0000
committerDan Cross <cross@gajendra.net>2025-07-25 18:46:52 +0000
commitb2fc88d60ad2ff4bc49ad32716879597d1a37856 (patch)
tree432a77488b8c3c6a2aac62aafc5ce30ea899002c /bin
parent9d2e0d31f76dfa2922236675981746090bbf3c1a (diff)
downloadplan9port-b2fc88d60ad2ff4bc49ad32716879597d1a37856.tar.gz
plan9port-b2fc88d60ad2ff4bc49ad32716879597d1a37856.zip
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/9c b/bin/9c
index 656ba84d..5e1a44ab 100755
--- a/bin/9c
+++ b/bin/9c
@@ -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