OSDN Git Service

BCC++ 5.5.1のコンパイル警告設定を追加した上で, 除去可能な警告の除去.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 10 May 2003 07:52:17 +0000 (07:52 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 10 May 2003 07:52:17 +0000 (07:52 +0000)
src/cmd1.c
src/generate.c
src/main-win.c
src/makefile.bcc

index 2c90c24..e024472 100644 (file)
@@ -3433,9 +3433,9 @@ static bool pattern_seq(int c_y, int c_x, int n_y, int n_x)
                                default:
                                        if (p_ptr->wizard)
 #ifdef JP
-                                               msg_format("¤ª¤«¤·¤Ê¥Ñ¥¿¡¼¥óÊâ¹Ô¡¢%d¡£", cave[c_y][c_x]);
+                                               msg_format("¤ª¤«¤·¤Ê¥Ñ¥¿¡¼¥óÊâ¹Ô¡¢%d¡£", cave[c_y][c_x].feat);
 #else
-                                               msg_format("Funny Pattern walking, %d.", cave[c_y][c_x]);
+                                               msg_format("Funny Pattern walking, %d.", cave[c_y][c_x].feat);
 #endif
 
                                        return TRUE; /* Goof-up */
index c083070..86e4c46 100644 (file)
@@ -1582,7 +1582,7 @@ void clear_cave(void)
  */
 void generate_cave(void)
 {
-       int y, x, num;
+       int num;
 
        /* Generate */
        for (num = 0; TRUE; num++)
index c6da125..3f85edb 100644 (file)
@@ -545,11 +545,15 @@ static cptr AngList = "AngList";
 /*
  * Directory names
  */
-static cptr ANGBAND_DIR_XTRA_FONT;
 static cptr ANGBAND_DIR_XTRA_GRAF;
 static cptr ANGBAND_DIR_XTRA_SOUND;
-static cptr ANGBAND_DIR_XTRA_MUSIC;
 static cptr ANGBAND_DIR_XTRA_HELP;
+#ifndef JP
+static cptr ANGBAND_DIR_XTRA_FONT;
+#endif
+#ifdef USE_MUSIC
+static cptr ANGBAND_DIR_XTRA_MUSIC;
+#endif
 
 
 /*
@@ -781,6 +785,7 @@ static void DrawBG(HDC hdc, RECT *r)
        DeleteDC(hdcSrc);
 }
 
+#if 0
 /*
  * Hack -- given a pathname, point at the filename
  */
@@ -797,6 +802,7 @@ static cptr extract_file_name(cptr s)
        /* Return file name */
        return (p+1);
 }
+#endif
 
 
 /*
index 40ff61c..493c386 100644 (file)
@@ -52,6 +52,7 @@ ANGBAND_RC = angband.rc
 # Set any compiler options
 
 CCOPTS = -Od -jb -j1 -Hc -tW -lGn -e$(EXE_FILE) \
+       -wamb -wdef -wnod -wpin -wstu -wstv -wuse \
        -D_WIN32_WINNT=0x0400 -DWINVER=0x0400 \
        -DUSE_TRANSPARENCY $(JP_OPT)