From 3db8233029e636d31f42787f87c1ea5f6e3316c4 Mon Sep 17 00:00:00 2001 From: Shane Carr Date: Wed, 11 Oct 2017 21:28:38 +0000 Subject: [PATCH] ICU-13415 Fixing compiler warnings in GCC X-SVN-Rev: 40614 --- icu4c/source/common/dictbe.cpp | 1 + icu4c/source/i18n/number_compact.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/icu4c/source/common/dictbe.cpp b/icu4c/source/common/dictbe.cpp index 9d8de50a07..18fa188a7e 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 db83ca748e..d8f3ced07b 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();