From: Steven R. Loomis Date: Tue, 20 Sep 2016 17:36:32 +0000 (+0000) Subject: ICU-11746 more warning nits X-Git-Tag: milestone-59-0-1~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc0960b2987d0c910947109ca863749993f9bc78;p=icu ICU-11746 more warning nits X-SVN-Rev: 39294 --- diff --git a/icu4c/source/i18n/affixpatternparser.cpp b/icu4c/source/i18n/affixpatternparser.cpp index 17ca6615497..2ca22a15003 100644 --- a/icu4c/source/i18n/affixpatternparser.cpp +++ b/icu4c/source/i18n/affixpatternparser.cpp @@ -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; } diff --git a/icu4c/source/i18n/reldatefmt.cpp b/icu4c/source/i18n/reldatefmt.cpp index f59b812d14a..dd4894e95e2 100644 --- a/icu4c/source/i18n/reldatefmt.cpp +++ b/icu4c/source/i18n/reldatefmt.cpp @@ -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] = { diff --git a/icu4c/source/i18n/unicode/uspoof.h b/icu4c/source/i18n/unicode/uspoof.h index 08e85fcfb03..5151993ca9b 100644 --- a/icu4c/source/i18n/unicode/uspoof.h +++ b/icu4c/source/i18n/unicode/uspoof.h @@ -577,7 +577,7 @@ typedef enum USpoofChecks { * An undefined restriction level. * @internal */ - USPOOF_UNDEFINED_RESTRICTIVE = -1, + USPOOF_UNDEFINED_RESTRICTIVE = -1 } URestrictionLevel; /** diff --git a/icu4c/source/i18n/visibledigits.cpp b/icu4c/source/i18n/visibledigits.cpp index 9fbcac7b539..1fea3504dfe 100644 --- a/icu4c/source/i18n/visibledigits.cpp +++ b/icu4c/source/i18n/visibledigits.cpp @@ -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.