]> granicus.if.org Git - icu/commitdiff
ICU-13415 Fixing compiler warnings in GCC
authorShane Carr <shane@unicode.org>
Wed, 11 Oct 2017 21:28:38 +0000 (21:28 +0000)
committerShane Carr <shane@unicode.org>
Wed, 11 Oct 2017 21:28:38 +0000 (21:28 +0000)
X-SVN-Rev: 40614

icu4c/source/common/dictbe.cpp
icu4c/source/i18n/number_compact.cpp

index 9d8de50a07a262fbc1f4faadde9a99ae71d55233..18fa188a7ed95d00939355afc86793c607bc1e08 100644 (file)
@@ -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
index db83ca748e68c20b6680a789b6e5a5ae9d37b19f..d8f3ced07baf29e259ac3695c01512ea369dd093 100644 (file)
@@ -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();