Silence some Mac OS X warnings.

This commit is contained in:
rsc 2003-11-25 02:36:46 +00:00
parent 6bb54fab15
commit 3765283ccf
5 changed files with 6 additions and 3 deletions

1
bin/9c
View file

@ -11,6 +11,7 @@ usegcc()
-Wno-parentheses \
-Wno-missing-braces \
-Wno-switch \
-Wno-sign-compare \
"
}

View file

@ -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;

View file

@ -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)){

View file

@ -7,6 +7,10 @@
#include "nan.h"
#ifdef __APPLE__
#define _NEEDLL
#endif
typedef unsigned long long uvlong;
typedef unsigned long ulong;

View file

@ -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;