mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-4288 Fix some compiler warnings.
X-SVN-Rev: 18108
This commit is contained in:
parent
5af5a9293b
commit
cdccbad7a5
4 changed files with 2 additions and 11 deletions
|
@ -2605,7 +2605,7 @@ static void TestXPath(void) {
|
|||
}
|
||||
static void TestCLDRStyleAliases(void) {
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
UResourceBundle *rb = NULL, *alias = NULL, *a3=NULL, *a4=NULL, *a5=NULL, *a6=NULL, *a=NULL;
|
||||
UResourceBundle *rb = NULL, *alias = NULL, *a=NULL;
|
||||
int32_t i, len;
|
||||
char resource[256];
|
||||
const UChar *result = NULL;
|
||||
|
|
|
@ -1503,7 +1503,7 @@ void NumberFormatTest::TestCurrencyAmount(void){
|
|||
}
|
||||
|
||||
CurrencyAmount *ca3 = (CurrencyAmount *)ca.clone();
|
||||
if (!(ca2 == ca)){
|
||||
if (!(*ca3 == ca)){
|
||||
errln("CurrencyAmount cloned object should be same");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1083,13 +1083,9 @@ static void TestFprintfFormat(void) {
|
|||
|
||||
TestFPrintFormat("%8c", (char)'e', "%8c", (char)'e');
|
||||
TestFPrintFormat("%-8c", (char)'e', "%-8c", (char)'e');
|
||||
TestFPrintFormat("%5.3c", (char)'e', "%5.3c", (char)'e');
|
||||
TestFPrintFormat("%-5.3c", (char)'e', "%-5.3c", (char)'e');
|
||||
|
||||
TestFPrintFormat("%8C", (UChar)0x65, "%8c", (char)'e');
|
||||
TestFPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)'e');
|
||||
TestFPrintFormat("%5.3C", (UChar)0x65, "%5.3c", (char)'e');
|
||||
TestFPrintFormat("%-5.3C", (UChar)0x65, "%-5.3c", (char)'e');
|
||||
|
||||
TestFPrintFormat("%f", 1.23456789, "%f", 1.23456789);
|
||||
TestFPrintFormat("%f", 12345.6789, "%f", 12345.6789);
|
||||
|
@ -1403,7 +1399,6 @@ static void TestUnicodeFormat(void)
|
|||
UChar myUString[256];
|
||||
UFILE *myFile;
|
||||
static const UChar TEST_STR[] = { 0x03BC, 0x0025, 0x0024, 0};
|
||||
static const UChar EXPECTED_STR[] = { 0x03BC, 0x03BC, 0x0025, 0x0024, 0};
|
||||
static const UChar PERCENT_S[] = { 0x03BC, 0x0025, 0x0053, 0};
|
||||
|
||||
u_memset(myUString, 0x2a, sizeof(myUString)/sizeof(*myUString));
|
||||
|
|
|
@ -391,13 +391,9 @@ static void TestSprintfFormat(void) {
|
|||
|
||||
TestSPrintFormat("%8c", (char)'e', "%8c", (char)'e');
|
||||
TestSPrintFormat("%-8c", (char)'e', "%-8c", (char)'e');
|
||||
TestSPrintFormat("%5.3c", (char)'e', "%5.3c", (char)'e');
|
||||
TestSPrintFormat("%-5.3c", (char)'e', "%-5.3c", (char)'e');
|
||||
|
||||
TestSPrintFormat("%8C", (UChar)0x65, "%8c", (char)'e');
|
||||
TestSPrintFormat("%-8C", (UChar)0x65, "%-8c", (char)'e');
|
||||
TestSPrintFormat("%5.3C", (UChar)0x65, "%5.3c", (char)'e');
|
||||
TestSPrintFormat("%-5.3C", (UChar)0x65, "%-5.3c", (char)'e');
|
||||
|
||||
TestSPrintFormat("%f", 1.23456789, "%f", 1.23456789);
|
||||
TestSPrintFormat("%f", 12345.6789, "%f", 12345.6789);
|
||||
|
|
Loading…
Add table
Reference in a new issue