ICU-535 fixed some compiler warnings

X-SVN-Rev: 2327
This commit is contained in:
George Rhoten 2000-08-23 00:05:17 +00:00
parent 197c4a0765
commit 9fe1519e56
3 changed files with 8 additions and 12 deletions

View File

@ -258,11 +258,7 @@ UBool testConvertFromU( const UChar *source, int sourceLen, const uint8_t *expe
ucnv_fromUnicode (conv,
(char **)&targ,
#if defined(OS400)
(const char*)end,
#else
(const int8_t*)end,
#endif
&src,
sourceLimit,
checkOffsets ? offs : NULL,

View File

@ -209,10 +209,10 @@ void G7CollationTest::TestDemo2( char* par )
return;
}
int32_t j;
for (j; j < TOTALTESTSET; j++)
int32_t j, n;
for (j = 0; j < TOTALTESTSET; j++)
{
for (int32_t n = j+1; n < TOTALTESTSET; n++)
for (n = j+1; n < TOTALTESTSET; n++)
{
doTest(myCollation, testCases[results[9][j]], testCases[results[9][n]], Collator::LESS);
}
@ -238,10 +238,10 @@ void G7CollationTest::TestDemo3( char* par )
return;
}
int32_t j;
int32_t j, n;
for (j = 0; j < TOTALTESTSET; j++)
{
for (int32_t n = j+1; n < TOTALTESTSET; n++)
for (n = j+1; n < TOTALTESTSET; n++)
{
doTest(myCollation, testCases[results[10][j]], testCases[results[10][n]], Collator::LESS);
}
@ -267,10 +267,10 @@ void G7CollationTest::TestDemo4( char* par )
return;
}
int32_t j;
int32_t j, n;
for (j = 0; j < TOTALTESTSET; j++)
{
for (int32_t n = j+1; n < TOTALTESTSET; n++)
for (n = j+1; n < TOTALTESTSET; n++)
{
doTest(myCollation, testCases[results[11][j]], testCases[results[11][n]], Collator::LESS);
}

View File

@ -944,4 +944,4 @@ void TransliteratorTest::expectAux(const UnicodeString& tag,
}
}
static UChar toHexString(int32_t i) { return (UChar)(i + (i < 10 ? ZERO : (UPPER_A - 10))); }
/*static UChar toHexString(int32_t i) { return (UChar)(i + (i < 10 ? ZERO : (UPPER_A - 10))); }*/