1
0
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:
Russ Cox 2008-10-03 16:23:02 -07:00
parent b8babed7c2
commit 45f4e38506
11 changed files with 13 additions and 21 deletions

View File

@ -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];

View File

@ -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

View File

@ -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);

View File

@ -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;
}

View File

@ -163,6 +163,7 @@ dumpobj(void)
Bterm(bout);
}
void
Bputdot(Biobuf *b)
{
// put out middle dot ·

View File

@ -9,7 +9,6 @@ void
convlit(Node *n, Type *t)
{
int et;
Node *n1;
if(n == N || t == T)
return;

View File

@ -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;

View File

@ -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*);

View File

@ -200,7 +200,6 @@ importfile(Val *f)
Biobuf *imp;
char *file;
int32 c;
char *p;
int len;
if(f->ctype != CTSTR) {

View File

@ -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);

View File

@ -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)