]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix more unused parameters
authorRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 20:29:56 +0000 (16:29 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 25 Aug 2011 20:29:56 +0000 (16:29 -0400)
R=ken2
CC=golang-dev
https://golang.org/cl/4971042

src/cmd/5g/gsubr.c
src/cmd/8g/gobj.c
src/cmd/8g/gsubr.c

index d133c6a90cf91291fdd08ccd7bd1955ce27c8b51..c9a2efa5592c7c257fc4828cac3e150a607fda35 100644 (file)
@@ -86,6 +86,8 @@ gbranch(int as, Type *t)
 {
        Prog *p;
 
+       USED(t);
+
        p = prog(as);
        p->to.type = D_BRANCH;
        p->to.branch = P;
index 2cf622830a9e727b370c9344d458a5aa825e6376..ec2af12f7f5215cb069a7c5326999a806bc68ec9 100644 (file)
@@ -549,6 +549,8 @@ genembedtramp(Type *rcvr, Type *method, Sym *newnam, int iface)
        Prog *p;
        Type *f;
 
+       USED(iface);
+
        e = method->sym;
        for(d=0; d<nelem(dotlist); d++) {
                c = adddot1(e, rcvr, d, nil, 0);
index b5238755044aab38637ded315d086afcb94fe874..ab4cc1cfe162c69b6caa05f312c399bfcf587afb 100644 (file)
@@ -84,6 +84,7 @@ gbranch(int as, Type *t)
 {
        Prog *p;
 
+       USED(t);
        p = prog(as);
        p->to.type = D_BRANCH;
        p->to.branch = P;
@@ -1957,5 +1958,9 @@ sudoclean(void)
 int
 sudoaddable(int as, Node *n, Addr *a)
 {
+       USED(as);
+       USED(n);
+       USED(a);
+
        return 0;
 }