diff --git a/icu4c/source/test/cintltst/bocu1tst.c b/icu4c/source/test/cintltst/bocu1tst.c index a7f6806a6f7..6f60b47c86e 100644 --- a/icu4c/source/test/cintltst/bocu1tst.c +++ b/icu4c/source/test/cintltst/bocu1tst.c @@ -248,7 +248,7 @@ decodeBocu1(Bocu1Rx *pRx, uint8_t b); * @param c current code point, 0..0x10ffff * @return "previous code point" state value */ -U_INLINE int32_t +static U_INLINE int32_t bocu1Prev(int32_t c) { /* compute new prev */ if(0x3040<=c && c<=0x309f) { @@ -1005,8 +1005,10 @@ TestBOCU1(void) { ucnv_close(bocu1); } +U_CFUNC void addBOCU1Tests(TestNode** root); + U_CFUNC void -addBOCU1Tests(TestNode** root) { +addBOCU1Tests(TestNode** root) { addTest(root, TestBOCU1RefDiff, "tsconv/bocu1tst/TestBOCU1RefDiff"); addTest(root, TestBOCU1, "tsconv/bocu1tst/TestBOCU1"); } diff --git a/icu4c/source/test/intltest/dadrcoll.cpp b/icu4c/source/test/intltest/dadrcoll.cpp index 437f80d530d..e5f3be8acf1 100644 --- a/icu4c/source/test/intltest/dadrcoll.cpp +++ b/icu4c/source/test/intltest/dadrcoll.cpp @@ -39,7 +39,7 @@ DataDrivenCollatorTest::~DataDrivenCollatorTest() delete driver; } -void DataDrivenCollatorTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* par ) +void DataDrivenCollatorTest::runIndexedTest( int32_t index, UBool exec, const char* &name, char* /*par */) { if(driver != NULL) { if (exec) diff --git a/icu4c/source/test/intltest/dadrcoll.h b/icu4c/source/test/intltest/dadrcoll.h index a3e2b9fe28b..f3b9772d2eb 100644 --- a/icu4c/source/test/intltest/dadrcoll.h +++ b/icu4c/source/test/intltest/dadrcoll.h @@ -25,7 +25,7 @@ class DataDrivenCollatorTest: public IntlTestCollator { void runIndexedTest(int32_t index, UBool exec, const char* &name, char* par = NULL ); public: DataDrivenCollatorTest(); - ~DataDrivenCollatorTest(); + virtual ~DataDrivenCollatorTest(); protected: void DataDrivenTest(char *par);