mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-5732 fix some compiler warnings
X-SVN-Rev: 22338
This commit is contained in:
parent
71a8f8e1ad
commit
739c71fac0
1 changed files with 3 additions and 6 deletions
|
@ -1741,10 +1741,8 @@ ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
|
|||
|
||||
/* check the argument values */
|
||||
RETURN_IF_NULL_OR_FAILING_ERRCODE(pErrorCode, );
|
||||
if(!IS_DEFAULT_LEVEL(paraLevel)) {
|
||||
RETURN_IF_BAD_RANGE(paraLevel, 0, UBIDI_MAX_EXPLICIT_LEVEL+1, *pErrorCode, );
|
||||
}
|
||||
if(pBiDi==NULL || text==NULL || length<-1) {
|
||||
if(pBiDi==NULL || text==NULL || length<-1 ||
|
||||
(paraLevel>UBIDI_MAX_EXPLICIT_LEVEL && paraLevel<UBIDI_DEFAULT_LTR)) {
|
||||
*pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
|
||||
return;
|
||||
}
|
||||
|
@ -1908,8 +1906,7 @@ ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
|
|||
pBiDi->pImpTabPair=&impTab_INVERSE_FOR_NUMBERS_SPECIAL;
|
||||
}
|
||||
break;
|
||||
case UBIDI_REORDER_RUNS_ONLY:
|
||||
case UBIDI_REORDER_COUNT:
|
||||
default:
|
||||
/* we should never get here */
|
||||
U_ASSERT(FALSE);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue