mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-4707 Fix some compiler warnings
X-SVN-Rev: 19413
This commit is contained in:
parent
d0138fed19
commit
ffaad4ccaa
3 changed files with 5 additions and 7 deletions
|
@ -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++) {
|
||||
|
|
|
@ -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*);
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue