Additional warnings
One of the two is fixed and GCC-exclusive, will cause more warnings on Clang
This commit is contained in:
parent
2787cb1413
commit
5cdaa301dc
2 changed files with 12 additions and 8 deletions
18
main.c
18
main.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue