OSDN Git Service

コンパイル警告の除去.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 14 Dec 2003 13:55:45 +0000 (13:55 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sun, 14 Dec 2003 13:55:45 +0000 (13:55 +0000)
src/autopick.c
src/files.c
src/grid.c

index 761f970..737c5cf 100644 (file)
@@ -4510,12 +4510,6 @@ static void draw_text_editor(text_body_type *tb)
 
        if (tb->mark)
        {
-               int tmp_cx = tb->cx;
-               int len = strlen(tb->lines_list[tb->cy]);
-
-               /* Correct cursor location */
-               if (tb->cx > len) tmp_cx = len;
-
                tb->dirty_flags |= DIRTY_ALL;
 
                by1 = MIN(tb->my, tb->cy);
index af2e8aa..ae6e751 100644 (file)
@@ -4685,7 +4685,7 @@ static void dump_aux_monsters(FILE *fff)
 #endif
 
                /* Print top 10 */
-               for (k = uniq_total - 1; k >= 0 && k >= uniq_total - 10; k--)
+               for (k = uniq_total - 1; k >= 0 && k >= (long)uniq_total - 10; k--)
                {
                        monster_race *r_ptr = &r_info[who[k]];
 
@@ -7603,10 +7603,9 @@ Term_putstr(0, 0, -1, TERM_WHITE, "
  */
 static void handle_signal_abort(int sig)
 {
-       int wid, hgt, rows;
+       int wid, hgt;
 
        Term_get_size(&wid, &hgt);
-       rows = hgt - 4;
 
        /* Disable handler */
        (void)signal(sig, SIG_IGN);
index 97a3e82..6eea7ae 100644 (file)
@@ -541,7 +541,6 @@ void build_tunnel(int row1, int col1, int row2, int col2)
        bool door_flag = FALSE;
 
        cave_type *c_ptr;
-       feature_type *f_ptr;
 
        /* Save the starting location */
        start_row = row1;
@@ -594,9 +593,8 @@ void build_tunnel(int row1, int col1, int row2, int col2)
 
                /* Access the location */
                c_ptr = &cave[tmp_row][tmp_col];
-               f_ptr = &f_info[c_ptr->feat];
 
-               if (permanent_wall(f_ptr))
+               if (permanent_wall(&f_info[c_ptr->feat]))
                {
                        /* Avoid the edge of vaults */
                        if (is_inner_grid(c_ptr)) continue;
@@ -608,14 +606,10 @@ void build_tunnel(int row1, int col1, int row2, int col2)
                /* Pierce "outer" walls of rooms */
                if (is_outer_grid(c_ptr))
                {
-                       feature_type *ff_ptr;
-
                        /* Acquire the "next" location */
                        y = tmp_row + row_dir;
                        x = tmp_col + col_dir;
 
-                       ff_ptr = &f_info[cave[y][x].feat];
-
                        /* Hack -- Avoid outer/solid walls */
                        if (is_outer_bold(y, x)) continue;
                        if (is_solid_bold(y, x)) continue;
@@ -728,16 +722,12 @@ void build_tunnel(int row1, int col1, int row2, int col2)
  */
 static bool set_tunnel(int *x, int *y, bool affectwall)
 {
-       int feat, i, j, dx, dy;
+       int i, j, dx, dy;
 
        cave_type *c_ptr = &cave[*y][*x];
-       feature_type *f_ptr;
 
        if (!in_bounds(*y, *x)) return TRUE;
 
-       feat = c_ptr->feat;
-       f_ptr = &f_info[feat];
-
        if (is_inner_grid(c_ptr))
        {
                return TRUE;