]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: trivial: resolve unused parameter warnings
authorDave Cheney <dave@cheney.net>
Tue, 25 Jun 2013 05:29:02 +0000 (15:29 +1000)
committerDave Cheney <dave@cheney.net>
Tue, 25 Jun 2013 05:29:02 +0000 (15:29 +1000)
Fix a bunch of warnings detected by https://golang.org/cl/8090044.

Same as CL 10483044, but for FreeBSD.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10498044

src/libmach/freebsd.c

index 45de966ec07dac82a3cb04c1efa861dc4d60f27a..c4e5efddfec485c6f27a477fa0f3f02083130cbb 100644 (file)
@@ -7,6 +7,9 @@
 int
 ctlproc(int pid, char *msg)
 {
+       USED(pid);
+       USED(msg);
+
        sysfatal("ctlproc unimplemented in FreeBSD");
        return -1;
 }
@@ -14,6 +17,8 @@ ctlproc(int pid, char *msg)
 char*
 proctextfile(int pid)
 {
+       USED(pid);
+       
        sysfatal("proctextfile unimplemented in FreeBSD");
        return nil;
 }
@@ -21,6 +26,8 @@ proctextfile(int pid)
 char*
 procstatus(int pid)
 {
+       USED(pid);
+
        sysfatal("procstatus unimplemented in FreeBSD");
        return nil;
 }
@@ -28,6 +35,9 @@ procstatus(int pid)
 Map*
 attachproc(int pid, Fhdr *fp)
 {
+       USED(pid);
+       USED(fp);
+
        sysfatal("attachproc unimplemented in FreeBSD");
        return nil;
 }
@@ -35,12 +45,18 @@ attachproc(int pid, Fhdr *fp)
 void
 detachproc(Map *m)
 {
+       USED(m);
+
        sysfatal("detachproc unimplemented in FreeBSD");
 }
 
 int
 procthreadpids(int pid, int *p, int np)
 {
+       USED(pid);
+       USED(p);
+       USED(np);
+
        sysfatal("procthreadpids unimplemented in FreeBSD");
        return -1;
 }