]> granicus.if.org Git - nethack/commitdiff
quite some Xcode warnings
authornhmall <nhmall@nethack.org>
Sat, 17 Aug 2019 16:55:48 +0000 (12:55 -0400)
committernhmall <nhmall@nethack.org>
Sat, 17 Aug 2019 16:55:48 +0000 (12:55 -0400)
src/mkmaze.c
src/shk.c
sys/unix/NetHack.xcodeproj/project.pbxproj
win/curses/cursstat.c

index a9d0c14611da9d4edfb2783bc387757091093542..9079b1e4fba90f149f8076505eaff24f61f86ae3 100644 (file)
@@ -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)
index fa29b1f31e9f9d03779b2ef8d10bb3af5ebcbf11..f5c42bacd6a80422c9200cb1776a51e14bfe1ccb 100644 (file)
--- 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;
index 78b618ce985b8ba30fce483ab5e4f7c59ace19c1..94d7eacc0fbabfd132a30c34503bd82246bc764a 100644 (file)
                        hasScannedForEncodings = 0;
                        knownRegions = (
                                en,
+                               Base,
                        );
                        mainGroup = 3189576821A1FCC100FB2ABE;
                        productRefGroup = 3189577221A1FCC100FB2ABE /* Products */;
index 4847308f06b6e9b2c65c27c674d931944a5b9ac3..664b9e31e46adf25e283104b112e2723d6c8d166 100644 (file)
@@ -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;