mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Silence some Mac OS X warnings.
This commit is contained in:
parent
6bb54fab15
commit
3765283ccf
5 changed files with 6 additions and 3 deletions
1
bin/9c
1
bin/9c
|
@ -11,6 +11,7 @@ usegcc()
|
|||
-Wno-parentheses \
|
||||
-Wno-missing-braces \
|
||||
-Wno-switch \
|
||||
-Wno-sign-compare \
|
||||
"
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)){
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
|
||||
#include "nan.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define _NEEDLL
|
||||
#endif
|
||||
|
||||
typedef unsigned long long uvlong;
|
||||
typedef unsigned long ulong;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue