diff options
-rwxr-xr-x | bin/9c | 1 | ||||
-rw-r--r-- | src/lib9/dirwstat.c | 2 | ||||
-rw-r--r-- | src/lib9/ffork-pthread.c | 1 | ||||
-rw-r--r-- | src/libfmt/nan64.c | 4 | ||||
-rw-r--r-- | src/libthread/PowerMacintosh.c | 1 |
5 files changed, 6 insertions, 3 deletions
@@ -11,6 +11,7 @@ usegcc() -Wno-parentheses \ -Wno-missing-braces \ -Wno-switch \ + -Wno-sign-compare \ " } diff --git a/src/lib9/dirwstat.c b/src/lib9/dirwstat.c index 6f351965..396158dc 100644 --- a/src/lib9/dirwstat.c +++ b/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; diff --git a/src/lib9/ffork-pthread.c b/src/lib9/ffork-pthread.c index 397f8aa6..ff61ed10 100644 --- a/src/lib9/ffork-pthread.c +++ b/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)){ diff --git a/src/libfmt/nan64.c b/src/libfmt/nan64.c index db4d1ecd..a02a3adb 100644 --- a/src/libfmt/nan64.c +++ b/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; diff --git a/src/libthread/PowerMacintosh.c b/src/libthread/PowerMacintosh.c index ddacea37..12d180e5 100644 --- a/src/libthread/PowerMacintosh.c +++ b/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; |