mirror of
https://github.com/golang/go
synced 2024-10-03 19:31:21 -06:00
silence gcc warnings
R=ken OCL=16449 CL=16466
This commit is contained in:
parent
b8babed7c2
commit
45f4e38506
@ -117,8 +117,6 @@ void
|
||||
allocparams(void)
|
||||
{
|
||||
Dcl *d;
|
||||
Iter list;
|
||||
Type *t;
|
||||
Node *n;
|
||||
uint32 w;
|
||||
|
||||
@ -153,7 +151,6 @@ gen(Node *n, Label *labloop)
|
||||
int32 lno;
|
||||
Prog *scontin, *sbreak;
|
||||
Prog *p1, *p2, *p3;
|
||||
Sym *s;
|
||||
Node *l;
|
||||
Label *lab;
|
||||
|
||||
@ -723,7 +720,7 @@ void
|
||||
cgen_call(Node *n, int proc)
|
||||
{
|
||||
Type *t;
|
||||
Node nod, afun, regax;
|
||||
Node nod, afun;
|
||||
|
||||
if(n == N)
|
||||
return;
|
||||
@ -823,7 +820,7 @@ cgen_callret(Node *n, Node *res)
|
||||
void
|
||||
cgen_aret(Node *n, Node *res)
|
||||
{
|
||||
Node nod1, nod2;
|
||||
Node nod1;
|
||||
Type *fp, *t;
|
||||
Iter flist;
|
||||
|
||||
@ -858,7 +855,6 @@ cgen_asop(Node *n)
|
||||
{
|
||||
Node n1, n2, n3, n4;
|
||||
Node *nl, *nr;
|
||||
int32 lno;
|
||||
|
||||
nl = n->left;
|
||||
nr = n->right;
|
||||
@ -1069,7 +1065,7 @@ void
|
||||
cgen_div(int op, Node *nl, Node *nr, Node *res)
|
||||
{
|
||||
Node ax, dx, n3, tmpax, tmpdx;
|
||||
int a, rax, rdx;
|
||||
int rax, rdx;
|
||||
|
||||
rax = reg[D_AX];
|
||||
rdx = reg[D_DX];
|
||||
|
@ -159,6 +159,7 @@ void gmove(Node*, Node*);
|
||||
Prog* gins(int, Node*, Node*);
|
||||
int samaddr(Node*, Node*);
|
||||
void naddr(Node*, Addr*);
|
||||
void cgen_aret(Node*, Node*);
|
||||
|
||||
/*
|
||||
* gsubr.c
|
||||
|
@ -836,7 +836,7 @@ nodconst(&nodc, types[TUINT64], 1);
|
||||
if(a == AMOVQ ||
|
||||
a == AMOVSD ||
|
||||
a == AMOVSS ||
|
||||
a == AMOVL && f->type->width == t->type->width) /* TO DO: check AMOVL */
|
||||
(a == AMOVL && f->type->width == t->type->width)) /* TO DO: check AMOVL */
|
||||
if(samaddr(f, t))
|
||||
return;
|
||||
gins(a, f, t);
|
||||
|
@ -316,9 +316,9 @@ Yconv(Fmt *fp)
|
||||
p = str;
|
||||
for(i=0; i<sconsize; i++) {
|
||||
c = a[i] & 0xff;
|
||||
if(c >= 'a' && c <= 'z' ||
|
||||
c >= 'A' && c <= 'Z' ||
|
||||
c >= '0' && c <= '9') {
|
||||
if((c >= 'a' && c <= 'z') ||
|
||||
(c >= 'A' && c <= 'Z') ||
|
||||
(c >= '0' && c <= '9')) {
|
||||
*p++ = c;
|
||||
continue;
|
||||
}
|
||||
|
@ -163,6 +163,7 @@ dumpobj(void)
|
||||
Bterm(bout);
|
||||
}
|
||||
|
||||
void
|
||||
Bputdot(Biobuf *b)
|
||||
{
|
||||
// put out middle dot ·
|
||||
|
@ -9,7 +9,6 @@ void
|
||||
convlit(Node *n, Type *t)
|
||||
{
|
||||
int et;
|
||||
Node *n1;
|
||||
|
||||
if(n == N || t == T)
|
||||
return;
|
||||
|
@ -640,8 +640,6 @@ addvar(Node *n, Type *t, int ctxt)
|
||||
{
|
||||
Dcl *r, *d;
|
||||
Sym *s;
|
||||
Type *ot;
|
||||
Node *on;
|
||||
int gen;
|
||||
|
||||
if(n==N || n->sym == S || n->op != ONAME || t == T)
|
||||
@ -965,9 +963,8 @@ mixed:
|
||||
void
|
||||
fninit(Node *n)
|
||||
{
|
||||
Node *done, *any;
|
||||
Node *done;
|
||||
Node *a, *fn, *r;
|
||||
Iter iter;
|
||||
uint32 h;
|
||||
Sym *s;
|
||||
|
||||
|
@ -591,6 +591,8 @@ Type* ptrto(Type*);
|
||||
Node* cleanidlist(Node*);
|
||||
Node* syslook(char*, int);
|
||||
Node* treecopy(Node*);
|
||||
int isselect(Node*);
|
||||
void tempname(Node*, Type*);
|
||||
|
||||
Type** getthis(Type*);
|
||||
Type** getoutarg(Type*);
|
||||
|
@ -200,7 +200,6 @@ importfile(Val *f)
|
||||
Biobuf *imp;
|
||||
char *file;
|
||||
int32 c;
|
||||
char *p;
|
||||
int len;
|
||||
|
||||
if(f->ctype != CTSTR) {
|
||||
|
@ -484,7 +484,7 @@ mpmovecfix(Mpint *a, vlong c)
|
||||
void
|
||||
mpdivmodfixfix(Mpint *q, Mpint *r, Mpint *n, Mpint *d)
|
||||
{
|
||||
int i, nn, dn;
|
||||
int i;
|
||||
|
||||
mpmovefixfix(r, n);
|
||||
mpmovecfix(q, 0);
|
||||
|
@ -780,7 +780,6 @@ Lconv(Fmt *fp)
|
||||
if(n == 0)
|
||||
strcat(str, "<epoch>");
|
||||
|
||||
ret:
|
||||
return fmtstrcpy(fp, str);
|
||||
}
|
||||
|
||||
@ -1458,8 +1457,6 @@ signame(Type *t)
|
||||
{
|
||||
Sym *s, *ss;
|
||||
char *e;
|
||||
Type *t1;
|
||||
int n;
|
||||
char buf[NSYMB];
|
||||
|
||||
if(t == T)
|
||||
|
Loading…
Reference in New Issue
Block a user