commit 3765283ccfb8499b588ea12459990ec85e4526a2 from: rsc date: Tue Nov 25 02:36:46 2003 UTC Silence some Mac OS X warnings. commit - 6bb54fab15a423b10840b117d7f4a5d58798c52f commit + 3765283ccfb8499b588ea12459990ec85e4526a2 blob - 8a7148e889912f9949263415211a5f1cd4b01a34 blob + fa37baad5aa5b677252b3e762b0fa6c6f80741ce --- bin/9c +++ bin/9c @@ -11,6 +11,7 @@ usegcc() -Wno-parentheses \ -Wno-missing-braces \ -Wno-switch \ + -Wno-sign-compare \ " } blob - 6f35196509cdce3c576710e9565ad6f14121f426 blob + 396158dc97092896152910a758b343ce2dc515c6 --- src/lib9/dirwstat.c +++ src/lib9/dirwstat.c @@ -10,7 +10,7 @@ dirwstat(char *file, Dir *dir) struct utimbuf ub; /* BUG handle more */ - if(dir->mtime == ~0ULL) + if(~dir->mtime == 0) return 0; ub.actime = dir->mtime; blob - 397f8aa6c1b2fdf2410f6ab84cc8b9396b7608df blob + ff61ed1041f5f3237faa2d2b6ef6c86f013aa2d5 --- src/lib9/ffork-pthread.c +++ src/lib9/ffork-pthread.c @@ -7,7 +7,6 @@ extern int __isthreaded; int ffork(int flags, void(*fn)(void*), void *arg) { - void *p; pthread_t tid; if(flags != (RFMEM|RFNOWAIT)){ blob - db4d1ecd6f552fd27eb6d73e191367f0f1fe8d67 blob + a02a3adb6436dca0cff661e2253e79007c2f98ac --- src/libfmt/nan64.c +++ src/libfmt/nan64.c @@ -7,6 +7,10 @@ #include "nan.h" +#ifdef __APPLE__ +#define _NEEDLL +#endif + typedef unsigned long long uvlong; typedef unsigned long ulong; blob - ddacea376f856acc667245dd2be49423373a0f71 blob + 12d180e5878e4bfa9583ffe183c5110b84c4ba81 --- src/libthread/PowerMacintosh.c +++ src/libthread/PowerMacintosh.c @@ -12,7 +12,6 @@ void _threadinitstack(Thread *t, void (*f)(void*), void *arg) { ulong *tos, *stk; - int n; tos = (ulong*)&t->stk[t->stksize&~7]; stk = tos;