OSDN Git Service

eliminate warnings
authorSHIRAKATA Kentaro <argrath@ub32.org>
Mon, 24 Sep 2018 16:10:07 +0000 (01:10 +0900)
committerSHIRAKATA Kentaro <argrath@ub32.org>
Mon, 24 Sep 2018 16:10:07 +0000 (01:10 +0900)
src/do_wear.c
src/dungeon.c
src/eat.c
src/explode.c
src/makemon.c
src/objnam.c
src/teleport.c
src/topten.c

index f4367a0..67cbefe 100644 (file)
@@ -1670,10 +1670,6 @@ int
 dotakeoff()
 {
     struct obj *otmp = (struct obj *) 0;
-#if 1 /*JP*/
-    const char *j;
-    const char *m;
-#endif
 
     count_worn_stuff(&otmp, FALSE);
     if (!Narmorpieces && !Naccessories) {
index 700ede6..334a49c 100644 (file)
@@ -1656,7 +1656,9 @@ const char *nam;
     d_level dlev;
     const char *p;
     int idx, idxtoo;
+#if 0 /*JP*/
     char buf[BUFSZ];
+#endif
     mapseen *mseen;
 
     /* look at the player's custom level annotations first */
index a76cb14..087ea59 100644 (file)
--- a/src/eat.c
+++ b/src/eat.c
@@ -2832,8 +2832,13 @@ struct obj *otmp;
      * ability to detect food that is unfit for consumption
      * or dangerous and avoid it.
      */
+#if 0 /*JP*/
     char buf[BUFSZ], foodsmell[BUFSZ],
          it_or_they[QBUFSZ], eat_it_anyway[QBUFSZ];
+#else
+    char buf[BUFSZ], foodsmell[BUFSZ],
+         eat_it_anyway[QBUFSZ];
+#endif
     boolean cadaver = (otmp->otyp == CORPSE || otmp->globby),
             stoneorslime = FALSE;
     int material = objects[otmp->otyp].oc_material, mnum = otmp->corpsenm;
index 848434d..ebe9838 100644 (file)
@@ -54,7 +54,11 @@ int expltype;
             inside_engulfer, grabbed, grabbing;
 #endif
     coord grabxy;
+#if 0 /*JP*/
     char hallu_buf[BUFSZ], killr_buf[BUFSZ];
+#else
+    char hallu_buf[BUFSZ];
+#endif
     short exploding_wand_typ = 0;
 
     if (olet == WAND_CLASS) { /* retributive strike */
index a2feaef..23f08dc 100644 (file)
@@ -1822,12 +1822,12 @@ struct monst *mtmp, *victim;
             mondied(mtmp);
             return (struct permonst *) 0;
         } else if (canspotmon(mtmp)) {
+#if 0 /*JP*/
             char buf[BUFSZ];
 
             /* 3.6.1:
              * Temporary (?) hack to fix growing into opposite gender.
              */
-#if 0 /*JP*/
             Sprintf(buf, "%s%s",
                     /* deal with female gnome becoming a gnome lord */
                     (mtmp->female && !fem) ? "male "
index 659d939..85502d6 100644 (file)
@@ -3420,7 +3420,11 @@ struct obj *no_wish;
     int eroded, eroded2, erodeproof, locked, unlocked, broken;
     int halfeaten, mntmp, contents;
     int islit, unlabeled, ishistoric, isdiluted, trapped;
+#if 0 /*JP*/
     int tmp, tinv, tvariety;
+#else
+    int tvariety;
+#endif
     int wetness, gsize = 0;
     struct fruit *f;
     int ftype = context.current_fruit;
index edc3ac3..b83a4c3 100644 (file)
@@ -1053,9 +1053,9 @@ level_tele_trap(trap, trflags)
 struct trap *trap;
 unsigned trflags;
 {
+#if 0 /*JP*/
     char verbbuf[BUFSZ];
 
-#if 0 /*JP*/
     if ((trflags & VIASITTING) != 0)
         Strcpy(verbbuf, "trigger"); /* follows "You sit down." */
     else
index b411325..37499ec 100644 (file)
@@ -119,8 +119,10 @@ boolean incl_helpless;
     };
 #if 0 /*JP*/
     unsigned l;
-#endif
     char c, *kname = killer.name;
+#else
+    char *kname = killer.name;
+#endif
 
     buf[0] = '\0'; /* lint suppression */
 #if 1 /*JP*//*\90æ\82É\91Î\8fÛ\82ð\83R\83s\81[*/