diff options
| author | Dan Cross <cross@gajendra.net> | 2025-07-25 18:45:10 +0000 |
|---|---|---|
| committer | Dan Cross <cross@gajendra.net> | 2025-07-25 18:46:52 +0000 |
| commit | b2fc88d60ad2ff4bc49ad32716879597d1a37856 (patch) | |
| tree | 432a77488b8c3c6a2aac62aafc5ce30ea899002c /src/libthread/thread.c | |
| parent | 9d2e0d31f76dfa2922236675981746090bbf3c1a (diff) | |
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 'src/libthread/thread.c')
| -rw-r--r-- | src/libthread/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |