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
2
Makefile
2
Makefile
|
@ -105,6 +105,8 @@ linty: CCFLAGS += -Wstrict-prototypes
|
|||
linty: CCFLAGS += -Wmissing-prototypes
|
||||
linty: CCFLAGS += -Wmissing-declarations
|
||||
linty: CCFLAGS += -Wshadow
|
||||
linty: CCFLAGS += -Wnull-dereference
|
||||
linty: CCFLAGS += -Wjump-misses-init
|
||||
linty: CCFLAGS += -Wfloat-equal
|
||||
linty: CCFLAGS += -Wcast-align
|
||||
linty: CCFLAGS += -Wwrite-strings
|
||||
|
|
2
main.c
2
main.c
|
@ -694,6 +694,7 @@ 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)
|
||||
|
@ -702,6 +703,7 @@ static void playermove( int motion)
|
|||
} 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