From ea99261ab6a3c06ffb1069a45523ffe3a54eb076 Mon Sep 17 00:00:00 2001 From: Deskull Date: Fri, 8 Dec 2017 08:38:11 +0900 Subject: [PATCH] =?utf8?q?#37287=20(2.2.0.89)=20C4701=E8=AD=A6=E5=91=8A?= =?utf8?q?=E3=81=AB=E5=AF=BE=E5=BF=9C=E3=80=82=20/=20Fix=20C4701=20warning?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/load.c | 1 + src/mspells1.c | 2 +- src/wild.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/load.c b/src/load.c index fd000bad8..ce49f238f 100644 --- a/src/load.c +++ b/src/load.c @@ -926,6 +926,7 @@ static void rd_monster_old(monster_type *m_ptr) if (z_older_than(10, 4, 5)) m_ptr->exp = 0; else + tmp32u = 0; rd_u32b(&tmp32u); m_ptr->exp = tmp32u; diff --git a/src/mspells1.c b/src/mspells1.c index 80f62e9a1..246348df7 100644 --- a/src/mspells1.c +++ b/src/mspells1.c @@ -542,7 +542,7 @@ void bolt(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, in */ void beam(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, int target_type) { - int flg; + int flg = 0; bool learnable = spell_learnable(m_idx); switch (target_type) diff --git a/src/wild.c b/src/wild.c index 59561c7c1..09a3d844d 100644 --- a/src/wild.c +++ b/src/wild.c @@ -43,7 +43,7 @@ static void set_floor_and_wall_aux(s16b feat_type[100], feat_prob prob[DUNGEON_F */ void set_floor_and_wall(DUNGEON_IDX type) { - static byte cur_type = 255; + DUNGEON_IDX cur_type = 255; dungeon_info_type *d_ptr; /* Already filled */ -- 2.11.0