From f3f79d3e26a66b220b31bcbdb33cacb7e3288892 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Tue, 2 Dec 2003 19:14:26 +0000 Subject: [PATCH] ICU-3222 Fix some compiler warnings X-SVN-Rev: 13945 --- icu4c/source/i18n/repattrn.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/repattrn.cpp b/icu4c/source/i18n/repattrn.cpp index 61d58a04dbf..834ad645fc1 100644 --- a/icu4c/source/i18n/repattrn.cpp +++ b/icu4c/source/i18n/repattrn.cpp @@ -408,8 +408,8 @@ int32_t RegexPattern::split(const UnicodeString &input, // Debugging function only. // //--------------------------------------------------------------------- -void RegexPattern::dumpOp(int32_t index) const { #if defined(REGEX_DEBUG) +void RegexPattern::dumpOp(int32_t index) const { static const char * const opNames[] = {URX_OPCODE_NAMES}; int32_t op = fCompiledPat->elementAti(index); int32_t val = URX_VAL(op); @@ -527,8 +527,11 @@ void RegexPattern::dumpOp(int32_t index) const { break; } REGEX_DUMP_DEBUG_PRINTF("\n"); -#endif } +#else +/* Define it this way to reduce compiler warnings */ +void RegexPattern::dumpOp(int32_t ) const {} +#endif