ICU-3500 Fix some compiler warnings.
X-SVN-Rev: 15860
This commit is contained in:
parent
75e601ba7f
commit
0e56433529
@ -68,7 +68,7 @@ void addURegexTest(TestNode** root)
|
||||
}
|
||||
|
||||
|
||||
void TestRegexCAPI(void) {
|
||||
static void TestRegexCAPI(void) {
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
URegularExpression *re;
|
||||
UChar pat[200];
|
||||
|
@ -572,7 +572,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
|
||||
TransliteratorPointer sourceToTarget(
|
||||
Transliterator::createInstance(transliteratorID, UTRANS_FORWARD, parseError,
|
||||
status));
|
||||
if ((const Transliterator *)sourceToTarget == NULL) {
|
||||
if ((Transliterator *)sourceToTarget == NULL) {
|
||||
parent->errln("FAIL: createInstance(" + transliteratorID +
|
||||
") returned NULL. Error: " + u_errorName(status)
|
||||
+ "\n\tpreContext : " + prettify(parseError.preContext)
|
||||
@ -581,7 +581,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
|
||||
return;
|
||||
}
|
||||
TransliteratorPointer targetToSource(sourceToTarget->createInverse(status));
|
||||
if ((const Transliterator *)targetToSource == NULL) {
|
||||
if ((Transliterator *)targetToSource == NULL) {
|
||||
parent->errln("FAIL: " + transliteratorID +
|
||||
".createInverse() returned NULL. Error:" + u_errorName(status)
|
||||
+ "\n\tpreContext : " + prettify(parseError.preContext)
|
||||
@ -1371,7 +1371,7 @@ void TransliteratorRoundTripTest::TestDevanagariLatin() {
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UParseError parseError;
|
||||
TransliteratorPointer t1(Transliterator::createInstance("[\\u0964-\\u0965\\u0981-\\u0983\\u0985-\\u098C\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC\\u09BE-\\u09C4\\u09C7-\\u09C8\\u09CB-\\u09CD\\u09D7\\u09DC-\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09FA];NFD;Bengali-InterIndic;InterIndic-Gujarati;NFC;",UTRANS_FORWARD, parseError, status));
|
||||
if((const Transliterator *)t1 != NULL){
|
||||
if((Transliterator *)t1 != NULL){
|
||||
TransliteratorPointer t2(t1->createInverse(status));
|
||||
if(U_FAILURE(status)){
|
||||
errln("FAIL: could not create the Inverse:-( \n");
|
||||
|
Loading…
Reference in New Issue
Block a user