ICU-11746 more warning nits

X-SVN-Rev: 39294
This commit is contained in:
Steven R. Loomis 2016-09-20 17:36:32 +00:00
parent 7ab8870fd9
commit bc0960b298
4 changed files with 8 additions and 5 deletions

View File

@ -46,7 +46,8 @@ nextToken(const UChar *buffer, int32_t idx, int32_t len, UChar *token) {
*token = buffer[idx + 1];
if (buffer[idx + 1] == 0xA4) {
int32_t i = 2;
for (; idx + i < len && i < 4 && buffer[idx + i] == buffer[idx + 1]; ++i);
for (; idx + i < len && i < 4 && buffer[idx + i] == buffer[idx + 1]; ++i)
;
return i;
}
return 2;
@ -68,7 +69,8 @@ nextUserToken(const UChar *buffer, int32_t idx, int32_t len, UChar *token) {
break;
}
int32_t i = 1;
for (; idx + i < len && i < max && buffer[idx + i] == buffer[idx]; ++i);
for (; idx + i < len && i < max && buffer[idx + i] == buffer[idx]; ++i)
;
return i;
}

View File

@ -556,7 +556,7 @@ struct RelDateTimeFmtDataSink : public ResourceSink {
};
// Virtual destructors must be defined out of line.
RelDateTimeFmtDataSink::~RelDateTimeFmtDataSink() {};
RelDateTimeFmtDataSink::~RelDateTimeFmtDataSink() {}
} // namespace
DateFormatSymbols::DtWidthType styleToDateFormatSymbolWidth[UDAT_STYLE_COUNT] = {

View File

@ -577,7 +577,7 @@ typedef enum USpoofChecks {
* An undefined restriction level.
* @internal
*/
USPOOF_UNDEFINED_RESTRICTIVE = -1,
USPOOF_UNDEFINED_RESTRICTIVE = -1
} URestrictionLevel;
/**

View File

@ -163,7 +163,8 @@ void VisibleDigits::getFixedDecimal(
// f (decimal digits)
// skip over any leading 0's in fraction digits.
int32_t idx = -1;
for (; idx >= -v && getDigitByExponent(idx) == 0; --idx);
for (; idx >= -v && getDigitByExponent(idx) == 0; --idx)
;
// Only process up to first 18 non zero fraction digits for decimalDigits
// since that is all we can fit into an int64.