ICU-900 Fixed some compiler warnings.

X-SVN-Rev: 8335
This commit is contained in:
George Rhoten 2002-04-02 03:25:05 +00:00
parent d950e15b50
commit 6e6032ba13
3 changed files with 4 additions and 3 deletions

View File

@ -96,12 +96,13 @@ u_loccache_get(const char *loc)
return result;
}
static loccache_cleanup()
static UBool loccache_cleanup()
{
if (gLocaleCache) {
uhash_close(gLocaleCache);
gLocaleCache = NULL;
}
return TRUE; /* Everything was cleaned up */
}
static UBool ustdio_cleanup(void)

View File

@ -106,7 +106,7 @@ u_fsettransliterator(UFILE *file, UFileDirection direction,
}
const UChar * u_file_translit(UFILE *f, const UChar *src, int32_t *count, UBool flush)
static const UChar * u_file_translit(UFILE *f, const UChar *src, int32_t *count, UBool flush)
{
int32_t newlen;
int32_t junkCount = 0;

View File

@ -50,7 +50,7 @@ public:
UBool operator==(const NFRule& rhs) const;
UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
ERuleType getType() const { return (ERuleType)(baseValue <= 0 ? baseValue : kOtherRule); }
ERuleType getType() const { return (ERuleType)(baseValue <= kNoBase ? (ERuleType)baseValue : kOtherRule); }
void setType(ERuleType ruleType) { baseValue = (int32_t)ruleType; }
int64_t getBaseValue() const { return baseValue; }