]> Cypherpunks repositories - gostls13.git/commitdiff
libmach,lib9: override unused parameter warnings (fixes netbsd and openbsd builds)
authorAlex Brainman <alex.brainman@gmail.com>
Sat, 20 Jul 2013 06:09:30 +0000 (16:09 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Sat, 20 Jul 2013 06:09:30 +0000 (16:09 +1000)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/11623043

src/libmach/netbsd.c
src/libmach/openbsd.c

index 03e08d9e8d406db6cfdeb1abbce8b54aa59f44a7..adeeff3330a57f983bc37f320e977a898dd691a3 100644 (file)
@@ -7,6 +7,8 @@
 int
 ctlproc(int pid, char *msg)
 {
+       USED(pid);
+       USED(msg);
        sysfatal("ctlproc unimplemented in NetBSD");
        return -1;
 }
@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
 char*
 proctextfile(int pid)
 {
+       USED(pid);
        sysfatal("proctextfile unimplemented in NetBSD");
        return nil;
 }
@@ -21,6 +24,7 @@ proctextfile(int pid)
 char*
 procstatus(int pid)
 {
+       USED(pid);
        sysfatal("procstatus unimplemented in NetBSD");
        return nil;
 }
@@ -28,6 +32,8 @@ procstatus(int pid)
 Map*
 attachproc(int pid, Fhdr *fp)
 {
+       USED(pid);
+       USED(fp);
        sysfatal("attachproc unimplemented in NetBSD");
        return nil;
 }
@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
 void
 detachproc(Map *m)
 {
+       USED(m);
        sysfatal("detachproc unimplemented in NetBSD");
 }
 
 int
 procthreadpids(int pid, int *p, int np)
 {
+       USED(pid);
+       USED(p);
+       USED(np);
        sysfatal("procthreadpids unimplemented in NetBSD");
        return -1;
 }
index d919383f3f77e773fd34d74c3f0360a450a894c6..ace8a22a5f5638dc9a90fff1468b855fa0ef6a3c 100644 (file)
@@ -7,6 +7,8 @@
 int
 ctlproc(int pid, char *msg)
 {
+       USED(pid);
+       USED(msg);
        sysfatal("ctlproc unimplemented in OpenBSD");
        return -1;
 }
@@ -14,6 +16,7 @@ ctlproc(int pid, char *msg)
 char*
 proctextfile(int pid)
 {
+       USED(pid);
        sysfatal("proctextfile unimplemented in OpenBSD");
        return nil;
 }
@@ -21,6 +24,7 @@ proctextfile(int pid)
 char*
 procstatus(int pid)
 {
+       USED(pid);
        sysfatal("procstatus unimplemented in OpenBSD");
        return nil;
 }
@@ -28,6 +32,8 @@ procstatus(int pid)
 Map*
 attachproc(int pid, Fhdr *fp)
 {
+       USED(pid);
+       USED(fp);
        sysfatal("attachproc unimplemented in OpenBSD");
        return nil;
 }
@@ -35,12 +41,16 @@ attachproc(int pid, Fhdr *fp)
 void
 detachproc(Map *m)
 {
+       USED(m);
        sysfatal("detachproc unimplemented in OpenBSD");
 }
 
 int
 procthreadpids(int pid, int *p, int np)
 {
+       USED(pid);
+       USED(p);
+       USED(np);
        sysfatal("procthreadpids unimplemented in OpenBSD");
        return -1;
 }