gcc compilation warning bits
This commit is contained in:
@@ -107,7 +107,7 @@ struct monst *mon;
|
||||
o = is_you ? invent : mon->minvent;
|
||||
slotmask = W_ARMOR | W_RING | W_AMUL | W_TOOL;
|
||||
if (!is_you || /* assumes monsters don't wield non-weapons */
|
||||
uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
|
||||
(uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep))))
|
||||
slotmask |= W_WEP;
|
||||
if (is_you && u.twoweap) slotmask |= W_SWAPWEP;
|
||||
for ( ; o; o = o->nobj)
|
||||
@@ -144,7 +144,7 @@ struct monst *mon;
|
||||
o = is_you ? invent : mon->minvent;
|
||||
slotmask = W_ARMOR | W_RING | W_AMUL | W_TOOL;
|
||||
if (!is_you || /* assumes monsters don't wield non-weapons */
|
||||
uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
|
||||
(uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep))))
|
||||
slotmask |= W_WEP;
|
||||
if (is_you && u.twoweap) slotmask |= W_SWAPWEP;
|
||||
for ( ; o; o = o->nobj)
|
||||
|
||||
@@ -591,7 +591,9 @@ boolean init;
|
||||
static boolean doneinit = FALSE;
|
||||
register struct WinDesc *cw = wins[WIN_MESSAGE];
|
||||
char *retstr = (char *)0;
|
||||
#ifdef UNICODE_WIDEWINPORT
|
||||
static char buf[BUFSZ];
|
||||
#endif
|
||||
|
||||
if (!cw) return (char *)0; /* bail */
|
||||
/*
|
||||
|
||||
@@ -197,7 +197,9 @@ STATIC_DCL tty_menu_item *FDECL(reverse, (tty_menu_item *));
|
||||
STATIC_DCL const char * FDECL(compress_str, (const char *));
|
||||
STATIC_DCL void FDECL(tty_putsym, (winid, int, int, NHWCHAR_P));
|
||||
static char *FDECL(copy_of, (const char *));
|
||||
#ifdef UNICODE_WIDEWINPORT
|
||||
static nhwchar *FDECL(nhwchar_copy_of, (const nhwchar *));
|
||||
#endif
|
||||
STATIC_DCL void FDECL(bail, (const char *)); /* __attribute__((noreturn)) */
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user