mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3222 Fix some compiler warnings.
X-SVN-Rev: 14308
This commit is contained in:
parent
862d04547e
commit
b9072652ab
4 changed files with 8 additions and 4 deletions
|
@ -1098,6 +1098,7 @@ uloc_getNameInternal(const char* localeID,
|
|||
|
||||
/* get all pieces, one after another, and separate with '_' */
|
||||
fieldCount=0;
|
||||
scriptSize=0;
|
||||
i=_getLanguage(localeID, name, nameCapacity, &localeID);
|
||||
if(_isIDSeparator(*localeID)) {
|
||||
const char *scriptID;
|
||||
|
|
|
@ -2640,5 +2640,7 @@ static void TestGetBaseName(void) {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -94,6 +94,6 @@ static void TestDisplayNames(void);
|
|||
*/
|
||||
static void setUpDataTable(void);
|
||||
static void cleanUpDataTable(void);
|
||||
static void displayDataTable(void);
|
||||
/*static void displayDataTable(void);*/
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1669,9 +1669,9 @@ LocaleTest::TestGetBaseName(void) {
|
|||
{ "ja@calendar = buddhist", "ja" }
|
||||
};
|
||||
|
||||
int32_t i = 0, baseNameLen = 0;
|
||||
int32_t i = 0;
|
||||
|
||||
for(i = 0; i < sizeof(testCases)/sizeof(testCases[0]); i++) {
|
||||
for(i = 0; i < (int32_t)(sizeof(testCases)/sizeof(testCases[0])); i++) {
|
||||
Locale loc(testCases[i].localeID);
|
||||
if(strcmp(testCases[i].baseName, loc.getBaseName())) {
|
||||
errln("For locale \"%s\" expected baseName \"%s\", but got \"%s\"",
|
||||
|
@ -1680,3 +1680,4 @@ LocaleTest::TestGetBaseName(void) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue