mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-6567 Fix some compiler warnings
X-SVN-Rev: 24715
This commit is contained in:
parent
7f89a4be9d
commit
7b405b40af
4 changed files with 11 additions and 8 deletions
|
@ -1399,6 +1399,8 @@ resolveImplicitLevels(UBiDi *pBiDi,
|
|||
DirProp nextStrongProp=R;
|
||||
int32_t nextStrongPos=-1;
|
||||
|
||||
levState.startON = -1; /* silence gcc flow analysis */
|
||||
|
||||
/* check for RTL inverse BiDi mode */
|
||||
/* FOOD FOR THOUGHT: in case of RTL inverse BiDi, it would make sense to
|
||||
* loop on the text characters from end to start.
|
||||
|
|
|
@ -512,7 +512,8 @@ caseMap(const UCaseMap *csm,
|
|||
*pErrorCode=U_UNSUPPORTED_ERROR;
|
||||
#else
|
||||
/* UCaseMap is actually non-const in toTitle() APIs. */
|
||||
destLength=_toTitle((UCaseMap *)csm, dest, destCapacity,
|
||||
UCaseMap *tmp = (UCaseMap *)csm;
|
||||
destLength=_toTitle(tmp, dest, destCapacity,
|
||||
src, &csc, srcLength,
|
||||
pErrorCode);
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2003-2007, International Business Machines
|
||||
* Copyright (C) 2003-2008, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
******************************************************************************
|
||||
|
@ -279,7 +279,7 @@ ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx,
|
|||
int32_t **offsets, int32_t srcIndex,
|
||||
UBool flush,
|
||||
UErrorCode *pErrorCode) {
|
||||
uint32_t value;
|
||||
uint32_t value = 0; /* initialize output-only param to 0 to silence gcc */
|
||||
int32_t match;
|
||||
|
||||
/* try to match */
|
||||
|
@ -329,7 +329,7 @@ U_CFUNC UChar32
|
|||
ucnv_extSimpleMatchToU(const int32_t *cx,
|
||||
const char *source, int32_t length,
|
||||
UBool useFallback) {
|
||||
uint32_t value;
|
||||
uint32_t value = 0; /* initialize output-only param to 0 to silence gcc */
|
||||
int32_t match;
|
||||
|
||||
if(length<=0) {
|
||||
|
@ -367,7 +367,7 @@ U_CFUNC void
|
|||
ucnv_extContinueMatchToU(UConverter *cnv,
|
||||
UConverterToUnicodeArgs *pArgs, int32_t srcIndex,
|
||||
UErrorCode *pErrorCode) {
|
||||
uint32_t value;
|
||||
uint32_t value = 0; /* initialize output-only param to 0 to silence gcc */
|
||||
int32_t match, length;
|
||||
|
||||
match=ucnv_extMatchToU(cnv->sharedData->mbcs.extIndexes, (int8_t)UCNV_SISO_STATE(cnv),
|
||||
|
@ -748,7 +748,7 @@ ucnv_extInitialMatchFromU(UConverter *cnv, const int32_t *cx,
|
|||
int32_t **offsets, int32_t srcIndex,
|
||||
UBool flush,
|
||||
UErrorCode *pErrorCode) {
|
||||
uint32_t value;
|
||||
uint32_t value = 0; /* initialize output-only param to 0 to silence gcc */
|
||||
int32_t match;
|
||||
|
||||
/* try to match */
|
||||
|
@ -861,7 +861,7 @@ U_CFUNC void
|
|||
ucnv_extContinueMatchFromU(UConverter *cnv,
|
||||
UConverterFromUnicodeArgs *pArgs, int32_t srcIndex,
|
||||
UErrorCode *pErrorCode) {
|
||||
uint32_t value;
|
||||
uint32_t value = 0; /* initialize output-only param to 0 to silence gcc */
|
||||
int32_t match;
|
||||
|
||||
match=ucnv_extMatchFromU(cnv->sharedData->mbcs.extIndexes,
|
||||
|
|
|
@ -1751,7 +1751,7 @@ void ucol_tok_initTokenList(UColTokenParser *src, const UChar *rules, const uint
|
|||
// like copy and remove...
|
||||
//const UChar *openBrace = rules;
|
||||
int32_t optionNumber = -1;
|
||||
const UChar *setStart;
|
||||
const UChar *setStart = NULL;
|
||||
uint32_t i = 0;
|
||||
while(i < rulesLength) {
|
||||
if(rules[i] == 0x005B) {
|
||||
|
|
Loading…
Add table
Reference in a new issue