ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 7711
This commit is contained in:
parent
39ae64b6ed
commit
0c41e609dc
@ -25,22 +25,22 @@ U_CDECL_BEGIN
|
||||
/* No-Op UCharIterator implementation for illegal input --------------------- */
|
||||
|
||||
static int32_t U_CALLCONV
|
||||
noopGetIndex(UCharIterator *iter, UCharIteratorOrigin origin) {
|
||||
noopGetIndex(UCharIterator * /*iter*/, UCharIteratorOrigin /*origin*/) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int32_t U_CALLCONV
|
||||
noopMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin) {
|
||||
noopMove(UCharIterator * /*iter*/, int32_t /*delta*/, UCharIteratorOrigin /*origin*/) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static UBool U_CALLCONV
|
||||
noopHasNext(UCharIterator *iter) {
|
||||
noopHasNext(UCharIterator * /*iter*/) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static int32_t U_CALLCONV
|
||||
noopCurrent(UCharIterator *iter) {
|
||||
noopCurrent(UCharIterator * /*iter*/) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -803,15 +803,15 @@ uloc_getLCID(const char* localeID)
|
||||
|
||||
if (U_SUCCESS(err))
|
||||
{
|
||||
UResourceBundle *localeID = ures_getByKey(bundle, _kLocaleID, NULL, &err);
|
||||
UResourceBundle *resLocaleID = ures_getByKey(bundle, _kLocaleID, NULL, &err);
|
||||
if (U_SUCCESS(err))
|
||||
{
|
||||
result = ures_getInt(localeID, &err);
|
||||
result = ures_getInt(resLocaleID, &err);
|
||||
if (U_FAILURE(err))
|
||||
{
|
||||
result = 0;
|
||||
}
|
||||
ures_close(localeID);
|
||||
ures_close(resLocaleID);
|
||||
}
|
||||
ures_close(bundle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user