ICU-4707 Fix some compiler warnings

X-SVN-Rev: 19379
This commit is contained in:
George Rhoten 2006-03-20 07:35:37 +00:00
parent c612f9a13a
commit b492fe71a3
3 changed files with 5 additions and 8 deletions

View file

@ -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]();

View file

@ -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]();

View file

@ -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) {