mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3222 Fix some compiler warnings.
X-SVN-Rev: 13921
This commit is contained in:
parent
ab4018c041
commit
515fd0dd7f
4 changed files with 9 additions and 5 deletions
|
@ -1074,7 +1074,7 @@ static void testCEs(UCollator *coll, UErrorCode *status) {
|
|||
collIterate c;
|
||||
UCollator *UCA = ucol_open("root", status);
|
||||
UCAConstants *consts = (UCAConstants *)((uint8_t *)UCA->image + UCA->image->UCAConsts);
|
||||
uint32_t UCOL_RESET_TOP_VALUE = consts->UCA_LAST_NON_VARIABLE[0], UCOL_RESET_TOP_CONT = consts->UCA_LAST_NON_VARIABLE[1],
|
||||
uint32_t UCOL_RESET_TOP_VALUE = consts->UCA_LAST_NON_VARIABLE[0], /*UCOL_RESET_TOP_CONT = consts->UCA_LAST_NON_VARIABLE[1], */
|
||||
UCOL_NEXT_TOP_VALUE = consts->UCA_FIRST_IMPLICIT[0], UCOL_NEXT_TOP_CONT = consts->UCA_FIRST_IMPLICIT[1];
|
||||
|
||||
baseCE=baseContCE=nextCE=nextContCE=currCE=currContCE=lastCE=lastContCE = UCOL_NOT_FOUND;
|
||||
|
@ -1603,6 +1603,7 @@ static void TestComposeDecompose(void) {
|
|||
*/
|
||||
|
||||
ucol_close(coll);
|
||||
coll = NULL;
|
||||
|
||||
log_verbose("Testing locales, number of cases = %i\n", noCases);
|
||||
iter = ucol_openElements(coll, t[u]->NFD, u_strlen(t[u]->NFD), &status);
|
||||
|
|
|
@ -29,7 +29,7 @@ _int32Top28Comparator(const void *context, const void *left, const void *right)
|
|||
return (*(const int32_t *)left>>4) - (*(const int32_t *)right>>4);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
SortTest(void) {
|
||||
uint16_t small[]={ 8, 1, 2, 5, 4, 3, 7, 6 };
|
||||
int32_t medium[]={ 10, 8, 1, 2, 5, 5, 6, 4, 3, 9, 7, 5 };
|
||||
|
@ -86,6 +86,9 @@ SortTest(void) {
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
addSortTest(TestNode** root);
|
||||
|
||||
void
|
||||
addSortTest(TestNode** root) {
|
||||
addTest(root, &SortTest, "tsutil/sorttest/SortTest");
|
||||
|
|
|
@ -336,7 +336,6 @@ void CollationThaiTest::TestCornerCases(void) {
|
|||
|
||||
void CollationThaiTest::compareArray(Collator& c, const char* tests[],
|
||||
int32_t testsLength) {
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
for (int32_t i = 0; i < testsLength; i += 3) {
|
||||
|
||||
Collator::EComparisonResult expect;
|
||||
|
@ -358,6 +357,7 @@ void CollationThaiTest::compareArray(Collator& c, const char* tests[],
|
|||
|
||||
doTest(&c, s1, s2, expect);
|
||||
#if 0
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
int32_t result = c.compare(s1, s2);
|
||||
if (sign(result) != sign(expect))
|
||||
{
|
||||
|
@ -458,7 +458,7 @@ void CollationThaiTest::TestInvalidThai(void) {
|
|||
|
||||
CollationElementIterator* c = ((RuleBasedCollator *)coll)->createCollationElementIterator( iteratorText );
|
||||
|
||||
for(i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) {
|
||||
for(i = 0; i < (int32_t)(sizeof(tests)/sizeof(tests[0])); i++) {
|
||||
len = u_unescape(tests[i], strings[i], 20);
|
||||
strings[i][len] = 0;
|
||||
toSort[i] = strings[i];
|
||||
|
|
|
@ -1184,7 +1184,7 @@ public:
|
|||
/**
|
||||
* SymbolTable API
|
||||
*/
|
||||
virtual const UnicodeFunctor* lookupMatcher(UChar32 ch) const {
|
||||
virtual const UnicodeFunctor* lookupMatcher(UChar32 /*ch*/) const {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue