summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/9c2
-rw-r--r--src/libthread/thread.c2
2 files changed, 2 insertions, 2 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
diff --git a/src/libthread/thread.c b/src/libthread/thread.c
index b5bfed3e..9bd1c527 100644
--- a/src/libthread/thread.c
+++ b/src/libthread/thread.c
@@ -908,7 +908,7 @@ threadinfo(void *v, char *s)
return 0;
for(p=_threadprocs; p; p=p->next){
- fprint(2, "proc %p %s%s\n", (void*)p->osprocid, p->msg,
+ fprint(2, "proc %p %s%s\n", (void*)(uintptr)p->osprocid, p->msg,
p->sysproc ? " (sysproc)": "");
for(t=p->allthreads.head; t; t=t->allnext){
fprint(2, "\tthread %d %s: %s %s\n",