ICU-2699 Fix some compiler warnings

X-SVN-Rev: 11967
This commit is contained in:
George Rhoten 2003-05-16 20:11:01 +00:00
parent c040b333ee
commit 8308f1d3a5
3 changed files with 9 additions and 3 deletions

View File

@ -173,7 +173,6 @@ RuleBasedBreakIterator::operator=(const RuleBasedBreakIterator& that) {
//-----------------------------------------------------------------------------
UBool RuleBasedBreakIterator::fTrace = FALSE;
void RuleBasedBreakIterator::init() {
static UBool debugInitDone = FALSE;
fText = NULL;
fData = NULL;
@ -182,15 +181,16 @@ void RuleBasedBreakIterator::init() {
fLastBreakTagValid = TRUE;
fDictionaryCharCount = 0;
if (debugInitDone == FALSE) {
#ifdef RBBI_DEBUG
static UBool debugInitDone = FALSE;
if (debugInitDone == FALSE) {
char *debugEnv = getenv("U_RBBIDEBUG");
if (debugEnv && uprv_strstr(debugEnv, "trace")) {
fTrace = TRUE;
}
#endif
debugInitDone = TRUE;
}
#endif
}

View File

@ -184,6 +184,7 @@ const UnicodeString &RBBIDataWrapper::getRuleSourceString() {
//
//-----------------------------------------------------------------------------
void RBBIDataWrapper::printData() {
#ifdef RBBI_DEBUG
uint32_t c, s;
RBBIDebugPrintf("RBBI Data at %p\n", (void *)fHeader);
@ -216,6 +217,7 @@ void RBBIDataWrapper::printData() {
c++;
}
RBBIDebugPrintf("\n\n");
#endif
}

View File

@ -339,6 +339,7 @@ int32_t RBBISetBuilder::getNumCharCategories() {
//
//------------------------------------------------------------------------
void RBBISetBuilder::printRanges() {
#ifdef RBBI_DEBUG
RangeDescriptor *rlRange;
int i;
@ -360,6 +361,7 @@ void RBBISetBuilder::printRanges() {
}
RBBIDebugPrintf("\n");
}
#endif
}
@ -421,6 +423,7 @@ void RBBISetBuilder::printRangeGroups() {
//
//------------------------------------------------------------------------
void RBBISetBuilder::printSets() {
#ifdef RBBI_DEBUG
int i;
RBBIDebugPrintf("\n\nUnicode Sets List\n------------------\n");
@ -453,6 +456,7 @@ void RBBISetBuilder::printSets() {
}
}
RBBIDebugPrintf("\n");
#endif
}