some Microsoft compiler warnings
src/muse.c(2255) : warning C4702: unreachable code src/options.c(2549) : warning C4702: unreachable code src/restore.c(930) : warning C4701: potentially uninitialized local variable 'stway' used src/sp_lev.c(5118) : warning C4701: potentially uninitialized local variable 'x' used src/sp_lev.c(5118) : warning C4701: potentially uninitialized local variable 'y' used src/trap.c(2979) : warning C4701: potentially uninitialized local variable 'cc' used src/trap.c(2985) : warning C4701: potentially uninitialized local variable 'bcc' used
This commit is contained in:
@@ -2252,6 +2252,7 @@ struct monst *mtmp;
|
|||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
/*NOTREACHED*/
|
||||||
return 0;
|
return 0;
|
||||||
case 0:
|
case 0:
|
||||||
return 0; /* i.e. an exploded wand */
|
return 0; /* i.e. an exploded wand */
|
||||||
|
|||||||
@@ -2544,7 +2544,6 @@ char *op;
|
|||||||
flags.paranoia_bits &= ~PARANOID_PRAY;
|
flags.paranoia_bits &= ~PARANOID_PRAY;
|
||||||
else
|
else
|
||||||
flags.paranoia_bits |= PARANOID_PRAY;
|
flags.paranoia_bits |= PARANOID_PRAY;
|
||||||
return optn_ok;
|
|
||||||
}
|
}
|
||||||
return optn_ok;
|
return optn_ok;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -910,7 +910,7 @@ rest_stairs(nhfp)
|
|||||||
NHFILE *nhfp;
|
NHFILE *nhfp;
|
||||||
{
|
{
|
||||||
int buflen = 0;
|
int buflen = 0;
|
||||||
stairway stway;
|
stairway stway = UNDEFINED_VALUES;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
||||||
stairway_free_all();
|
stairway_free_all();
|
||||||
|
|||||||
+1
-1
@@ -5069,7 +5069,7 @@ lspo_terrain(L)
|
|||||||
lua_State *L;
|
lua_State *L;
|
||||||
{
|
{
|
||||||
terrain tmpterrain;
|
terrain tmpterrain;
|
||||||
xchar x, y;
|
xchar x = 0, y = 0;
|
||||||
struct selectionvar *sel = NULL;
|
struct selectionvar *sel = NULL;
|
||||||
int argc = lua_gettop(L);
|
int argc = lua_gettop(L);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -2931,8 +2931,8 @@ long ocount;
|
|||||||
register int tmp;
|
register int tmp;
|
||||||
schar dx, dy;
|
schar dx, dy;
|
||||||
int distance;
|
int distance;
|
||||||
coord cc;
|
coord cc = UNDEFINED_VALUES,
|
||||||
coord bcc;
|
bcc = UNDEFINED_VALUES;
|
||||||
int trycount = 0;
|
int trycount = 0;
|
||||||
boolean success = FALSE;
|
boolean success = FALSE;
|
||||||
int mindist = 4;
|
int mindist = 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user