silence various warnings

This commit is contained in:
rsc 2005-08-11 17:33:43 +00:00
parent 01d1f4cb4b
commit bcac59d81b
13 changed files with 18 additions and 24 deletions

View file

@ -336,10 +336,8 @@ timefmt(Fmt *fmt)
if((long)(time0-u) < 6*30*86400)
return fmtprint(fmt, "%s %2d %02d:%02d",
mon[tm->mon], tm->mday, tm->hour, tm->min);
else
return fmtprint(fmt, "%s %2d %5d",
mon[tm->mon], tm->mday, tm->year+1900);
return 0;
return fmtprint(fmt, "%s %2d %5d",
mon[tm->mon], tm->mday, tm->year+1900);
}
static int

View file

@ -105,7 +105,7 @@ convgetrpc(Conv *c, int want)
return &c->rpc;
rpcrespond(c, "phase in state '%s' want '%s'", c->state, rpcname[want]);
}
return nil; /* not reached */
/* not reached */
}
/* read until the done function tells us that's enough */

View file

@ -159,7 +159,7 @@ readlist(int off, int (*gen)(int, char*, uint), Req *r)
a += n;
off++;
}
return -1; /* not reached */
/* not reached */
}
static int

View file

@ -157,7 +157,7 @@ yylook(void){
if(debug)putchar('\n');
# endif
}
return(0); /* shut up the compiler; i have no idea what should be returned */
/* not reached */
}
int
yyback(int *p, int m)

View file

@ -102,5 +102,4 @@ main(int argc, char **argv)
break;
}
}
exits(nil);
}

View file

@ -88,7 +88,6 @@ getcmdstr(void)
}
}
}
return nil;
}
static char *

View file

@ -591,7 +591,6 @@ main(int argc, char *argv[])
} else if(affix[0] != 0 && affix[0] != '.')
print("%s\t%s\n", affix, original);
}
exits(0);
}
/* strip exactly one suffix and do

View file

@ -75,17 +75,17 @@ enum
/*
* magic numbers on disk
*/
_ClumpMagic = 0xd15cb10c, /* clump header, deprecated */
_ClumpMagic = 0xd15cb10cU, /* clump header, deprecated */
ClumpFreeMagic = 0, /* free clump; terminates active clump log */
ArenaPartMagic = 0xa9e4a5e7, /* arena partition header */
ArenaMagic = 0xf2a14ead, /* arena trailer */
ArenaHeadMagic = 0xd15c4ead, /* arena header */
ArenaPartMagic = 0xa9e4a5e7U, /* arena partition header */
ArenaMagic = 0xf2a14eadU, /* arena trailer */
ArenaHeadMagic = 0xd15c4eadU, /* arena header */
BloomMagic = 0xb1004ead, /* bloom filter header */
BloomMagic = 0xb1004eadU, /* bloom filter header */
BloomMaxHash = 32,
ISectMagic = 0xd15c5ec7, /* index header */
ISectMagic = 0xd15c5ec7U, /* index header */
ArenaPartVersion = 3,
ArenaVersion4 = 4,