From e122306d6a34385407043f208af95a59df71e1de Mon Sep 17 00:00:00 2001 From: Walter Negro Date: Sun, 14 Apr 2002 05:10:02 +0000 Subject: [PATCH] * contrib/libct/pos1.c * Add some values for default to eliminate warnings when compiling with gcc -O2. --- harbour/contrib/libct/pos1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harbour/contrib/libct/pos1.c b/harbour/contrib/libct/pos1.c index 360dee7c81..579463e5f8 100644 --- a/harbour/contrib/libct/pos1.c +++ b/harbour/contrib/libct/pos1.c @@ -86,7 +86,7 @@ static void do_pos1 (int iSwitch) unsigned char *pcString; size_t sStrLen; - unsigned char *puc, ucChar1, ucChar2; + unsigned char *puc, ucChar1 = ' ', ucChar2 = ' '; int iMode; size_t sIgnore; int iParamShift = 0; @@ -132,7 +132,7 @@ static void do_pos1 (int iSwitch) for (puc = pcString+sIgnore; puc < pcString+sStrLen; puc++) { - int iDoRet; + int iDoRet = 0; switch (iSwitch) { case DO_POS1_POSALPHA: