From: Shane Carr Date: Wed, 11 Oct 2017 21:28:38 +0000 (+0000) Subject: ICU-13415 Fixing compiler warnings in GCC X-Git-Tag: cldr-32-beta2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3db8233029e636d31f42787f87c1ea5f6e3316c4;p=icu ICU-13415 Fixing compiler warnings in GCC X-SVN-Rev: 40614 --- diff --git a/icu4c/source/common/dictbe.cpp b/icu4c/source/common/dictbe.cpp index 9d8de50a07a..18fa188a7ed 100644 --- a/icu4c/source/common/dictbe.cpp +++ b/icu4c/source/common/dictbe.cpp @@ -1383,6 +1383,7 @@ CjkBreakEngine::divideUpDictionaryRange( UText *inText, prevCPPos = cpPos; prevUTextPos = utextPos; } + (void)prevCPPos; // suppress compiler warnings about unused variable // inString goes out of scope // inputMap goes out of scope diff --git a/icu4c/source/i18n/number_compact.cpp b/icu4c/source/i18n/number_compact.cpp index db83ca748e6..d8f3ced07ba 100644 --- a/icu4c/source/i18n/number_compact.cpp +++ b/icu4c/source/i18n/number_compact.cpp @@ -316,6 +316,7 @@ void CompactHandler::processQuantity(DecimalQuantity &quantity, MicroProps &micr } // FIXME: Deal with numDigits == 0 (Awaiting a test case) + (void)numDigits; // We already performed rounding. Do not perform it again. micros.rounding = Rounder::constructPassThrough();