mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 20153
This commit is contained in:
parent
8503dd41b1
commit
8c383fed44
3 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* *
|
||||
* Copyright (C) 1999-2005, International Business Machines *
|
||||
* Copyright (C) 1999-2006, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
* *
|
||||
******************************************************************************
|
||||
|
@ -31,7 +31,7 @@ typedef uint32_t Resource;
|
|||
|
||||
#define RES_BOGUS 0xffffffff
|
||||
|
||||
#define RES_GET_TYPE(res) ((res)>>28UL)
|
||||
#define RES_GET_TYPE(res) ((UResType)((res)>>28UL))
|
||||
#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
|
||||
#define RES_GET_POINTER(pRoot, res) ((pRoot)+RES_GET_OFFSET(res))
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* *
|
||||
* Copyright (C) 2001-2004, International Business Machines *
|
||||
* Copyright (C) 2001-2006, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
* *
|
||||
******************************************************************************
|
||||
|
@ -25,9 +25,9 @@ static cleanupFunc *gCleanupFunctions[UCLN_I18N_COUNT];
|
|||
|
||||
static UBool i18n_cleanup(void)
|
||||
{
|
||||
ECleanupI18NType libType;
|
||||
ECleanupI18NType libType = UCLN_I18N_START;
|
||||
|
||||
for (libType = UCLN_I18N_START+1; libType<UCLN_I18N_COUNT; libType++) {
|
||||
while (++libType<UCLN_I18N_COUNT) {
|
||||
if (gCleanupFunctions[libType])
|
||||
{
|
||||
gCleanupFunctions[libType]();
|
||||
|
|
|
@ -26,9 +26,9 @@ static cleanupFunc *gCleanupFunctions[UCLN_IO_COUNT];
|
|||
|
||||
static UBool io_cleanup(void)
|
||||
{
|
||||
ECleanupIOType libType;
|
||||
ECleanupIOType libType = UCLN_IO_START;
|
||||
|
||||
for (libType = UCLN_IO_START+1; libType<UCLN_IO_COUNT; libType++) {
|
||||
while (++libType<UCLN_IO_COUNT) {
|
||||
if (gCleanupFunctions[libType])
|
||||
{
|
||||
gCleanupFunctions[libType]();
|
||||
|
|
Loading…
Add table
Reference in a new issue