ICU-4707 Fix some compiler warnings

X-SVN-Rev: 19413
This commit is contained in:
George Rhoten 2006-03-23 03:57:20 +00:00
parent d0138fed19
commit ffaad4ccaa
3 changed files with 5 additions and 7 deletions

View file

@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 2005, International Business Machines Corporation and
* Copyright (c) 2005-2006, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
@ -147,7 +147,6 @@ void LocaleAliasTest::TestCollation() {
}
}
void LocaleAliasTest::TestULocale() {
UErrorCode status = U_ZERO_ERROR;
for (int i=0; i<_LOCALE_NUMBER; i++) {
Locale* oldLoc = new Locale(_LOCALE_ALIAS[i][0]);
Locale* newLoc = new Locale(_LOCALE_ALIAS[i][1]);
@ -200,7 +199,6 @@ UBool LocaleAliasTest::isLocaleAvailable(const char* loc){
return TRUE;
}
void LocaleAliasTest::TestDisplayName() {
UErrorCode status = U_ZERO_ERROR;
int32_t availableNum =0;
const Locale* available = Locale::getAvailableLocales(availableNum);
for (int i=0; i<_LOCALE_NUMBER; i++) {

View file

@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
* Copyright (c) 2005, International Business Machines Corporation and
* Copyright (c) 2005-2006, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#ifndef _ALIASTST
@ -20,7 +20,7 @@ public:
void TestDisplayName();
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL );
LocaleAliasTest();
~LocaleAliasTest();
virtual ~LocaleAliasTest();
private:
UResourceBundle* resIndex;
UBool isLocaleAvailable(const char*);

View file

@ -1,6 +1,6 @@
/*
**************************************************************************************
* Copyright (C) 1999-2006 Alan Liu ,International Business Machines Corporation and
* Copyright (C) 1999-2006 International Business Machines Corporation and
* others. All Rights Reserved.
**************************************************************************************
* Date Name Description
@ -692,7 +692,7 @@ void UnicodeSetTest::TestIteration() {
UBool nextv = it.next();
UBool isString = it.isString();
int32_t codePoint = it.getCodepoint();
int32_t codePointEnd = it.getCodepointEnd();
//int32_t codePointEnd = it.getCodepointEnd();
UnicodeString s = it.getString();
switch (i) {
case 0: