From: nhmall Date: Sat, 17 Aug 2019 16:55:48 +0000 (-0400) Subject: quite some Xcode warnings X-Git-Tag: v3.6.3.757eca7~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a328ff7eb5f7452150d17ce9fb8b79e0970edac;p=nethack quite some Xcode warnings --- diff --git a/src/mkmaze.c b/src/mkmaze.c index a9d0c1461..9079b1e4f 100644 --- a/src/mkmaze.c +++ b/src/mkmaze.c @@ -1400,7 +1400,7 @@ movebubbles() struct bubble *b; struct container *cons; struct trap *btrap; - int x, y, i, j, bcpin; + int x, y, i, j, bcpin = 0; /* set up the portal the first time bubbles are moved */ if (!wportal) diff --git a/src/shk.c b/src/shk.c index fa29b1f31..f5c42bacd 100644 --- a/src/shk.c +++ b/src/shk.c @@ -4828,7 +4828,7 @@ void globby_bill_fixup(obj_absorber, obj_absorbed) struct obj *obj_absorber, *obj_absorbed; { - int x, y; + int x = 0, y = 0; struct bill_x *bp, *bp_absorber = (struct bill_x *) 0; struct monst *shkp = 0; struct eshk *eshkp; diff --git a/sys/unix/NetHack.xcodeproj/project.pbxproj b/sys/unix/NetHack.xcodeproj/project.pbxproj index 78b618ce9..94d7eacc0 100644 --- a/sys/unix/NetHack.xcodeproj/project.pbxproj +++ b/sys/unix/NetHack.xcodeproj/project.pbxproj @@ -1158,6 +1158,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = 3189576821A1FCC100FB2ABE; productRefGroup = 3189577221A1FCC100FB2ABE /* Products */; diff --git a/win/curses/cursstat.c b/win/curses/cursstat.c index 4847308f0..664b9e31e 100644 --- a/win/curses/cursstat.c +++ b/win/curses/cursstat.c @@ -907,7 +907,7 @@ curs_HPbar(char *text, /* pre-padded with trailing spaces if short */ { #ifdef STATUS_HILITES #ifdef TEXTCOLOR - int coloridx; + int coloridx = 0; #endif #endif /* STATUS_HILITES */ int k, bar_pos;