mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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-parentheses \
|
||||||
-Wno-missing-braces \
|
-Wno-missing-braces \
|
||||||
-Wno-switch \
|
-Wno-switch \
|
||||||
|
-Wno-sign-compare \
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ dirwstat(char *file, Dir *dir)
|
||||||
struct utimbuf ub;
|
struct utimbuf ub;
|
||||||
|
|
||||||
/* BUG handle more */
|
/* BUG handle more */
|
||||||
if(dir->mtime == ~0ULL)
|
if(~dir->mtime == 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ub.actime = dir->mtime;
|
ub.actime = dir->mtime;
|
||||||
|
|
|
@ -7,7 +7,6 @@ extern int __isthreaded;
|
||||||
int
|
int
|
||||||
ffork(int flags, void(*fn)(void*), void *arg)
|
ffork(int flags, void(*fn)(void*), void *arg)
|
||||||
{
|
{
|
||||||
void *p;
|
|
||||||
pthread_t tid;
|
pthread_t tid;
|
||||||
|
|
||||||
if(flags != (RFMEM|RFNOWAIT)){
|
if(flags != (RFMEM|RFNOWAIT)){
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
|
|
||||||
#include "nan.h"
|
#include "nan.h"
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
#define _NEEDLL
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef unsigned long long uvlong;
|
typedef unsigned long long uvlong;
|
||||||
typedef unsigned long ulong;
|
typedef unsigned long ulong;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ void
|
||||||
_threadinitstack(Thread *t, void (*f)(void*), void *arg)
|
_threadinitstack(Thread *t, void (*f)(void*), void *arg)
|
||||||
{
|
{
|
||||||
ulong *tos, *stk;
|
ulong *tos, *stk;
|
||||||
int n;
|
|
||||||
|
|
||||||
tos = (ulong*)&t->stk[t->stksize&~7];
|
tos = (ulong*)&t->stk[t->stksize&~7];
|
||||||
stk = tos;
|
stk = tos;
|
||||||
|
|
Loading…
Reference in a new issue