mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-4707 Fix some compiler warnings
X-SVN-Rev: 19379
This commit is contained in:
parent
c612f9a13a
commit
b492fe71a3
3 changed files with 5 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* *
|
||||
* Copyright (C) 2001-2004, International Business Machines *
|
||||
* Copyright (C) 2001-2006, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
* *
|
||||
******************************************************************************
|
||||
|
@ -38,9 +38,9 @@ void ucln_common_registerCleanup(ECleanupCommonType type,
|
|||
}
|
||||
|
||||
U_CFUNC UBool ucln_common_lib_cleanup(void) {
|
||||
ECleanupCommonType commonFunc;
|
||||
ECleanupCommonType commonFunc = UCLN_COMMON_START;
|
||||
|
||||
for (commonFunc = UCLN_COMMON_START+1; commonFunc<UCLN_COMMON_COUNT; commonFunc++) {
|
||||
for (commonFunc++; commonFunc<UCLN_COMMON_COUNT; commonFunc++) {
|
||||
if (gCommonCleanupFunctions[commonFunc])
|
||||
{
|
||||
gCommonCleanupFunctions[commonFunc]();
|
||||
|
|
|
@ -50,13 +50,13 @@ ucln_registerCleanup(ECleanupLibraryType type,
|
|||
U_CAPI void U_EXPORT2
|
||||
u_cleanup(void)
|
||||
{
|
||||
ECleanupLibraryType libType;
|
||||
ECleanupLibraryType libType = UCLN_START;
|
||||
|
||||
UTRACE_ENTRY_OC(UTRACE_U_CLEANUP);
|
||||
umtx_lock(NULL); /* Force a memory barrier, so that we are sure to see */
|
||||
umtx_unlock(NULL); /* all state left around by any other threads. */
|
||||
|
||||
for (libType = UCLN_START+1; libType<UCLN_COMMON; libType++) {
|
||||
for (libType++; libType<UCLN_COMMON; libType++) {
|
||||
if (gLibCleanupFunctions[libType])
|
||||
{
|
||||
gLibCleanupFunctions[libType]();
|
||||
|
|
|
@ -28,7 +28,6 @@ const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim,
|
|||
{
|
||||
int32_t ln = 0;
|
||||
char buffer[1024];
|
||||
const CharList *ol = NULL;
|
||||
while(l != NULL)
|
||||
{
|
||||
if(l->str)
|
||||
|
@ -57,8 +56,6 @@ const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim,
|
|||
|
||||
ln += (int32_t)uprv_strlen(l->str);
|
||||
|
||||
ol = l;
|
||||
|
||||
if(l->next && delim)
|
||||
{
|
||||
if(ln > 60 && brk) {
|
||||
|
|
Loading…
Add table
Reference in a new issue