Silence GCC warnings

...when compiling with -Wall --pedantic
This commit is contained in:
Pasi Kallinen
2015-03-31 08:36:32 +03:00
parent ec7238ac22
commit f2d97b2d00
8 changed files with 12 additions and 29 deletions

View File

@@ -219,14 +219,10 @@ struct mkroom *sroom;
{
struct monst *mon;
register int sx,sy,i;
int sh, tx, ty, goldlim, type = sroom->rtype;
int sh, tx = 0, ty = 0, goldlim = 0, type = sroom->rtype;
int rmno = (int)((sroom - rooms) + ROOMOFFSET);
coord mm;
#ifdef GCC_WARN
tx = ty = goldlim = 0;
#endif
sh = sroom->fdoor;
switch(type) {
case COURT: