1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00

libmach,lib9: override unused parameter warnings (fixes windows build)

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/11620044
This commit is contained in:
Alex Brainman 2013-07-20 12:43:50 +10:00
parent c485b58912
commit dfbe467eda
4 changed files with 22 additions and 0 deletions

View File

@ -43,6 +43,9 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
char tmp[20]; char tmp[20];
int sz, fd; int sz, fd;
#ifdef _WIN32
USED(lst);
#endif
fd = -1; fd = -1;
USED(fd); USED(fd);
sz = 0; sz = 0;

View File

@ -48,6 +48,8 @@ futimes(int fd, struct timeval *tv)
static int static int
futimes(int fd, struct timeval *tv) futimes(int fd, struct timeval *tv)
{ {
USED(fd);
USED(tv);
werrstr("futimes not available"); werrstr("futimes not available");
return -1; return -1;
} }

View File

@ -14,6 +14,7 @@ fork(void)
int int
p9rfork(int flags) p9rfork(int flags)
{ {
USED(flags);
return -1; return -1;
} }

View File

@ -7,6 +7,8 @@
int int
ctlproc(int pid, char *msg) ctlproc(int pid, char *msg)
{ {
USED(pid);
USED(msg);
sysfatal("ctlproc unimplemented in Windows"); sysfatal("ctlproc unimplemented in Windows");
return -1; return -1;
} }
@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
char* char*
proctextfile(int pid) proctextfile(int pid)
{ {
USED(pid);
sysfatal("proctextfile unimplemented in Windows"); sysfatal("proctextfile unimplemented in Windows");
return nil; return nil;
} }
@ -21,6 +24,7 @@ proctextfile(int pid)
char* char*
procstatus(int pid) procstatus(int pid)
{ {
USED(pid);
sysfatal("procstatus unimplemented in Windows"); sysfatal("procstatus unimplemented in Windows");
return nil; return nil;
} }
@ -28,6 +32,8 @@ procstatus(int pid)
Map* Map*
attachproc(int pid, Fhdr *fp) attachproc(int pid, Fhdr *fp)
{ {
USED(pid);
USED(fp);
sysfatal("attachproc unimplemented in Windows"); sysfatal("attachproc unimplemented in Windows");
return nil; return nil;
} }
@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
void void
detachproc(Map *m) detachproc(Map *m)
{ {
USED(m);
sysfatal("detachproc unimplemented in Windows"); sysfatal("detachproc unimplemented in Windows");
} }
int int
procthreadpids(int pid, int *p, int np) procthreadpids(int pid, int *p, int np)
{ {
USED(pid);
USED(p);
USED(np);
sysfatal("procthreadpids unimplemented in Windows"); sysfatal("procthreadpids unimplemented in Windows");
return -1; return -1;
} }
@ -59,6 +69,10 @@ pread(int fd, void *buf, int count, int offset)
int int
pwrite(int fd, void *buf, int count, int offset) pwrite(int fd, void *buf, int count, int offset)
{ {
USED(fd);
USED(buf);
USED(count);
USED(offset);
sysfatal("pwrite unimplemented in Windows"); sysfatal("pwrite unimplemented in Windows");
return -1; return -1;
} }
@ -66,6 +80,8 @@ pwrite(int fd, void *buf, int count, int offset)
int int
nanosleep(const struct timespec *rqtp, struct timespec *rmtp) nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
{ {
USED(rqtp);
USED(rmtp);
sysfatal("nanosleep unimplemented in Windows"); sysfatal("nanosleep unimplemented in Windows");
return -1; return -1;
} }