mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-535 Removed compiler warnings
X-SVN-Rev: 2222
This commit is contained in:
parent
ec02ab0d69
commit
f5c62e3f39
4 changed files with 5 additions and 5 deletions
icu4c/source/test/intltest
|
@ -207,7 +207,7 @@ void TransliteratorAPITest::TestGetDisplayName() {
|
|||
"Kana-Latin" ,"Kana to Latin"
|
||||
};
|
||||
UnicodeString name="";
|
||||
Transliterator* t;
|
||||
Transliterator* t=NULL;
|
||||
UnicodeString message;
|
||||
for (int32_t i=0; i<sizeof(dispNames)/sizeof(dispNames[0]); i=i+2 ) {
|
||||
t = Transliterator::createInstance(dispNames[i+0]);
|
||||
|
@ -249,7 +249,7 @@ void TransliteratorAPITest::TestTransliterate1(){
|
|||
UnicodeString gotResult;
|
||||
UnicodeString temp;
|
||||
UnicodeString message;
|
||||
Transliterator* t;
|
||||
Transliterator* t=NULL;
|
||||
logln("Testing transliterate");
|
||||
|
||||
for(int i=0;i<sizeof(Data)/sizeof(Data[0]); i=i+3){
|
||||
|
|
|
@ -201,7 +201,7 @@ double IntlTestDateFormat::randDouble()
|
|||
{
|
||||
// Assume 8-bit (or larger) rand values. Also assume
|
||||
// that the system rand() function is very poor, which it always is.
|
||||
double d;
|
||||
double d=0.0;
|
||||
int32_t i;
|
||||
do {
|
||||
for (i=0; i < sizeof(double); ++i)
|
||||
|
|
|
@ -674,7 +674,7 @@ TimeZoneRegressionTest::Test4154525()
|
|||
UBool valid = DATA[i+1] == GOOD;
|
||||
UnicodeString method;
|
||||
for(int32_t j=0; j < 2; ++j) {
|
||||
SimpleTimeZone *z;
|
||||
SimpleTimeZone *z=NULL;
|
||||
switch (j) {
|
||||
case 0:
|
||||
method = "constructor";
|
||||
|
|
|
@ -572,7 +572,7 @@ void UnicodeTest::TestCharLength()
|
|||
1, 0xe000
|
||||
};
|
||||
|
||||
int16_t i;
|
||||
int32_t i;
|
||||
UBool multiple;
|
||||
for(i=0; i<sizeof(codepoint)/sizeof(codepoint[0]); i=i+2){
|
||||
UChar32 c=codepoint[i+1];
|
||||
|
|
Loading…
Add table
Reference in a new issue