]> Cypherpunks repositories - gostls13.git/commitdiff
libmach,lib9: override unused parameter warnings (fixes windows build)
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 20 Jul 2013 02:43:50 +0000 (12:43 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 20 Jul 2013 02:43:50 +0000 (12:43 +1000)
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/11620044

src/lib9/_p9dir.c
src/lib9/dirfwstat.c
src/lib9/windows.c
src/libmach/windows.c

index a226556f5b77e8543cea16bbdcdefe4fa25cc387..d65edcfbfbf71a9c73bb9bf5bb9ffcac7d6351b6 100644 (file)
@@ -43,6 +43,9 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char *
        char tmp[20];
        int sz, fd;
 
+#ifdef _WIN32
+       USED(lst);
+#endif
        fd = -1;
        USED(fd);
        sz = 0;
index d0afe7d710dfe5a870f7302ff5610898f9b78faf..e32ddeaea211c62945336359fccdb19c313a47ca 100644 (file)
@@ -48,6 +48,8 @@ futimes(int fd, struct timeval *tv)
 static int
 futimes(int fd, struct timeval *tv)
 {
+       USED(fd);
+       USED(tv);
        werrstr("futimes not available");
        return -1;
 }
index d8ee402a2c59b408824116b26af678cd431ded1f..082f33997a7d09b617c6826cc749e69e4dec4c8c 100644 (file)
@@ -14,6 +14,7 @@ fork(void)
 int
 p9rfork(int flags)
 {
+       USED(flags);
        return -1;
 }
 
index aea7bace07b1a9b3736fcdd74402094e8bc7949c..9ffc3af011bb389013143c252e174fc71fde7599 100644 (file)
@@ -7,6 +7,8 @@
 int
 ctlproc(int pid, char *msg)
 {
+       USED(pid);
+       USED(msg);
        sysfatal("ctlproc unimplemented in Windows");
        return -1;
 }
@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
 char*
 proctextfile(int pid)
 {
+       USED(pid);
        sysfatal("proctextfile unimplemented in Windows");
        return nil;
 }
@@ -21,6 +24,7 @@ proctextfile(int pid)
 char*
 procstatus(int pid)
 {
+       USED(pid);
        sysfatal("procstatus unimplemented in Windows");
        return nil;
 }
@@ -28,6 +32,8 @@ procstatus(int pid)
 Map*
 attachproc(int pid, Fhdr *fp)
 {
+       USED(pid);
+       USED(fp);
        sysfatal("attachproc unimplemented in Windows");
        return nil;
 }
@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
 void
 detachproc(Map *m)
 {
+       USED(m);
        sysfatal("detachproc unimplemented in Windows");
 }
 
 int
 procthreadpids(int pid, int *p, int np)
 {
+       USED(pid);
+       USED(p);
+       USED(np);
        sysfatal("procthreadpids unimplemented in Windows");
        return -1;
 }
@@ -59,6 +69,10 @@ pread(int fd, void *buf, int count, int offset)
 int 
 pwrite(int fd, void *buf, int count, int offset)
 {
+       USED(fd);
+       USED(buf);
+       USED(count);
+       USED(offset);
        sysfatal("pwrite unimplemented in Windows");
        return -1;
 }
@@ -66,6 +80,8 @@ pwrite(int fd, void *buf, int count, int offset)
 int 
 nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
 {
+       USED(rqtp);
+       USED(rmtp);
        sysfatal("nanosleep unimplemented in Windows");
        return -1;
 }