From: cohrs Date: Sun, 6 Jul 2003 22:29:48 +0000 (+0000) Subject: compilation gcc warning bits X-Git-Tag: MOVE2GIT~1907 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6c730031a3af37edf9c77d0e0e01ac8088454ed;p=nethack compilation gcc warning bits I noticed I hadn't tried VISION_TABLES in a while. --- diff --git a/src/vision.c b/src/vision.c index b807bea2c..de9099307 100644 --- a/src/vision.c +++ b/src/vision.c @@ -1519,7 +1519,9 @@ clear_path(col1,row1,col2,row2) q3_path(row1,col1,row2,col2,cleardone); } } +#ifdef MACRO_CPATH cleardone: +#endif return((boolean)result); } @@ -1664,6 +1666,9 @@ right_side(row, cb_row, cb_col, fb_row, fb_col, left, right_mark, limits) char *row_max; /* right most */ int lim_max; /* right most limit of circle */ +#ifdef GCC_WARN + rowp = 0; +#endif nrow = row + step; deeper = good_row(nrow) && (!limits || (*limits >= *(limits+1))); if(!vis_func) { @@ -1916,6 +1921,9 @@ left_side(row, cb_row, cb_col, fb_row, fb_col, left_mark, right, limits) char *row_max; /* right most */ int lim_min; +#ifdef GCC_WARN + rowp = 0; +#endif nrow = row + step; deeper = good_row(nrow) && (!limits || (*limits >= *(limits+1))); if(!vis_func) {