From cff6d3c16506aff4eea3b2c56bf996d43c2bcdca Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Fri, 6 Jan 2023 11:23:19 -0500 Subject: [PATCH] Changes to 'mbrot' resulted in a declaration of 'int i;' hiding a previous declaration. Hat tip to MSVC; gcc didn't warn me about it. --- curses.h | 6 +++--- demos/mbrot.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/curses.h b/curses.h index 685d77eb..fbe1f80c 100644 --- a/curses.h +++ b/curses.h @@ -40,9 +40,9 @@ Defined by this header: #define PDC_VER_MAJOR 4 #define PDC_VER_MINOR 3 #define PDC_VER_CHANGE 5 -#define PDC_VER_YEAR 2022 -#define PDC_VER_MONTH 12 -#define PDC_VER_DAY 15 +#define PDC_VER_YEAR 2023 +#define PDC_VER_MONTH 01 +#define PDC_VER_DAY 05 #define PDC_STRINGIZE( x) #x #define PDC_stringize( x) PDC_STRINGIZE( x) diff --git a/demos/mbrot.c b/demos/mbrot.c index 02b6b80b..e97162d5 100644 --- a/demos/mbrot.c +++ b/demos/mbrot.c @@ -231,8 +231,6 @@ int main( const int argc, const char **argv) _n_colors = COLORS; /* use PDCursesMod's rgb palette */ else if( !_n_colors) { - int i; - while( _n_colors * (_n_colors + 1) / 2 < COLOR_PAIRS - COLOR0 && _n_colors < COLORS - COLOR0) _n_colors++;