From 8762c9498e9b2a533e9b758a4d55477e7eca7fd0 Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 3 Jul 2019 14:05:19 -0700 Subject: [PATCH] couple of 3.7 build warnings --- src/dungeon.c | 6 +++--- sys/unix/unixmain.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/dungeon.c b/src/dungeon.c index 95c4a6cdb..180ba601a 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 dungeon.c $NHDT-Date: 1559476918 2019/06/02 12:01:58 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.95 $ */ +/* NetHack 3.6 dungeon.c $NHDT-Date: 1562187890 2019/07/03 21:04:50 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.105 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2012. */ /* NetHack may be freely redistributed. See license for details. */ @@ -153,7 +153,7 @@ boolean perform_write, free_data; for (i = 0; i < g.n_dgns; ++i) sfo_dungeon(nhfp, &g.dungeons[i], "dungeon", "dungeon", 1); sfo_dgn_topology(nhfp, &g.dungeon_topology, "dungeon", "g.dungeon_topology", 1); - for (i = 0; i < sizeof tune; ++i) + for (i = 0; i < (int) sizeof tune; ++i) sfo_char(nhfp, &g.tune[i], "dungeon", "tune", 1); } for (count = 0, curr = g.branches; curr; curr = curr->next) @@ -234,7 +234,7 @@ NHFILE *nhfp; for (i = 0; i < g.n_dgns; ++i) sfi_dungeon(nhfp, &g.dungeons[i], "dungeon", "dungeon", 1); sfi_dgn_topology(nhfp, &g.dungeon_topology, "dungeon", "g.dungeon_topology", 1); - for (i = 0; i < sizeof tune; ++i) + for (i = 0; i < (int) sizeof tune; ++i) sfi_char(nhfp, &g.tune[i], "dungeon", "tune", 1); } last = g.branches = (branch *) 0; diff --git a/sys/unix/unixmain.c b/sys/unix/unixmain.c index bef1ffa51..23d6d55e9 100644 --- a/sys/unix/unixmain.c +++ b/sys/unix/unixmain.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 unixmain.c $NHDT-Date: 1432512788 2015/05/25 00:13:08 $ $NHDT-Branch: master $:$NHDT-Revision: 1.52 $ */ +/* NetHack 3.6 unixmain.c $NHDT-Date: 1562187898 2019/07/03 21:04:58 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.78 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Robert Patrick Rankin, 2011. */ /* NetHack may be freely redistributed. See license for details. */ @@ -50,7 +50,6 @@ main(argc, argv) int argc; char *argv[]; { - register int fd; #ifdef CHDIR register char *dir; #endif