mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-900 Fixed some compiler warnings.
X-SVN-Rev: 6210
This commit is contained in:
parent
cc7ab003da
commit
963217e8f1
2 changed files with 499 additions and 501 deletions
File diff suppressed because it is too large
Load diff
|
@ -21,7 +21,7 @@
|
|||
} \
|
||||
break
|
||||
|
||||
void RbnfRoundTripTest::runIndexedTest(int32_t index, UBool exec, const char* &name, char* par)
|
||||
void RbnfRoundTripTest::runIndexedTest(int32_t index, UBool exec, const char* &name, char* /*par*/)
|
||||
{
|
||||
if (exec) logln("TestSuite RuleBasedNumberFormatRT");
|
||||
switch (index) {
|
||||
|
@ -289,7 +289,7 @@ RbnfRoundTripTest::doTest(const RuleBasedNumberFormat* formatter,
|
|||
if (U_FAILURE(status)) {
|
||||
sprintf(buf, "Round-trip status failure: %.12g, status: %d", i, status);
|
||||
errln(buf);
|
||||
return;
|
||||
return;
|
||||
} else {
|
||||
double rt = (parseResult.getType() == Formattable::kDouble) ?
|
||||
parseResult.getDouble() :
|
||||
|
@ -298,7 +298,7 @@ RbnfRoundTripTest::doTest(const RuleBasedNumberFormat* formatter,
|
|||
if (rt != i) {
|
||||
sprintf(buf, "Round-trip failed: %.12g -> %.12g", i, rt);
|
||||
errln(buf);
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -316,21 +316,21 @@ RbnfRoundTripTest::doTest(const RuleBasedNumberFormat* formatter,
|
|||
if (U_FAILURE(status)) {
|
||||
sprintf(buf, "Round-trip status failure: %.12g, status: %d", d, status);
|
||||
errln(buf);
|
||||
return;
|
||||
return;
|
||||
} else {
|
||||
double rt = (parseResult.getType() == Formattable::kDouble) ?
|
||||
parseResult.getDouble() :
|
||||
(double)parseResult.getLong();
|
||||
|
||||
if (rt != d) {
|
||||
UnicodeString msg;
|
||||
UnicodeString msg;
|
||||
sprintf(buf, "Round-trip failed: %.12g -> ", d);
|
||||
msg.append(buf);
|
||||
msg.append(formatResult);
|
||||
sprintf(buf, " -> %.12g", rt);
|
||||
msg.append(buf);
|
||||
msg.append(buf);
|
||||
msg.append(formatResult);
|
||||
sprintf(buf, " -> %.12g", rt);
|
||||
msg.append(buf);
|
||||
errln(msg);
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue