Additional warnings

One of the two is fixed and GCC-exclusive, will cause more
warnings on Clang
This commit is contained in:
NHOrus 2018-03-08 15:20:14 +03:00
parent 2787cb1413
commit 5cdaa301dc
2 changed files with 12 additions and 8 deletions

18
main.c
View file

@ -694,14 +694,16 @@ static void playermove( int motion)
* to get it out. Having dropped it, go back and
* pretend he wasn't carrying it after all. */
drop(EMERALD, game.loc);
int te_tmp = travel_entry;
do {
if (travel[te_tmp].stop)
BUG(CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION); // LCOV_EXCL_LINE
++te_tmp;
} while
(traveleq(travel_entry, te_tmp));
travel_entry = te_tmp;
{
int te_tmp = travel_entry;
do {
if (travel[te_tmp].stop)
BUG(CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION); // LCOV_EXCL_LINE
++te_tmp;
} while
(traveleq(travel_entry, te_tmp));
travel_entry = te_tmp;
}
continue; /* goto L12 */
case 3:
/* Special travel 3. Troll bridge. Must be done