silence all gcc warnings

This commit is contained in:
Russ Cox
2005-11-07 17:13:41 +00:00
parent 7732ac0a9b
commit 1c8b499228
47 changed files with 192 additions and 128 deletions

View File

@ -29,8 +29,6 @@ exportfs(int fd, int msgsz)
char buf[ERRMAX], ebuf[ERRMAX];
Fsrpc *r;
int i, n;
char *dbfile, *srv, *file;
ulong initial;
fcalls[Tversion] = Xversion;
fcalls[Tauth] = Xauth;
@ -110,7 +108,6 @@ reply(Fcall *r, Fcall *t, char *err)
{
uchar *data;
int m, n;
static QLock lk;
t->tag = r->tag;
t->fid = r->fid;
@ -494,7 +491,6 @@ fatal(char *s, ...)
{
char buf[ERRMAX];
va_list arg;
Proc *m;
if (s) {
va_start(arg, s);
@ -510,6 +506,6 @@ fatal(char *s, ...)
if (s)
sysfatal(buf);
else
exits(nil);
sysfatal("");
}

View File

@ -143,6 +143,6 @@ char* estrdup(char*);
void* emallocz(uint);
int readmessage(int, char*, int);
#define notify
#define noted
#define exits
#define notify(x)
#define noted(x)
#define exits(x)

View File

@ -89,10 +89,8 @@ Xflush(Fsrpc *t)
void
Xattach(Fsrpc *t)
{
int i, nfd;
Fcall rhdr;
Fid *f;
char buf[128];
f = newfid(t->work.fid);
if(f == 0) {
@ -431,7 +429,6 @@ slave(Fsrpc *f)
Proc *p;
int pid;
static int nproc;
static QLock lk;
for(;;) {
for(p = Proclist; p; p = p->next) {