ICU-3222 Fix some compiler warnings.

X-SVN-Rev: 13932
This commit is contained in:
George Rhoten 2003-12-02 02:23:08 +00:00
parent 560eb13f18
commit 423411ca70
3 changed files with 11 additions and 5 deletions

View file

@ -1001,7 +1001,7 @@ int32_t RuleBasedBreakIterator::handlePrevious(const RBBIStateTable *statetable)
int32_t lookaheadStatus = 0;//[] = {0, 0, 0, 0, 0};
int32_t lookaheadResult = 0;//[] = {0, 0, 0, 0, 0};
int32_t lookaheadTag = 0;//[] = {0, 0, 0, 0, 0};
int32_t lookaheadCount = 0;
/*int32_t lookaheadCount = 0;*/
RBBIStateTableRow *row;
row = (RBBIStateTableRow *)

View file

@ -204,8 +204,8 @@ const UnicodeString &RBBIDataWrapper::getRuleSourceString() {
// print - debugging function to dump the runtime data tables.
//
//-----------------------------------------------------------------------------
void RBBIDataWrapper::printTable(const char *heading, const RBBIStateTable *table) {
#ifdef RBBI_DEBUG
void RBBIDataWrapper::printTable(const char *heading, const RBBIStateTable *table) {
uint32_t c;
uint32_t s;
@ -232,8 +232,11 @@ void RBBIDataWrapper::printTable(const char *heading, const RBBIStateTable *tab
RBBIDebugPrintf("\n");
}
RBBIDebugPrintf("\n");
#endif
}
#else
/* Use an empty function for non-debug builds to ignore warnings. */
void RBBIDataWrapper::printTable(const char *, const RBBIStateTable *) {}
#endif
void RBBIDataWrapper::printData() {

View file

@ -827,16 +827,19 @@ void RBBITableBuilder::exportTable(void *where) {
// printSet Debug function. Print the contents of a UVector
//
//-----------------------------------------------------------------------------
void RBBITableBuilder::printSet(UVector *s) {
#ifdef RBBI_DEBUG
void RBBITableBuilder::printSet(UVector *s) {
int32_t i;
for (i=0; i<s->size(); i++) {
void *v = s->elementAt(i);
RBBIDebugPrintf("%10p", v);
}
RBBIDebugPrintf("\n");
#endif
}
#else
/* Use an empty function for non-debug builds to ignore warnings. */
void RBBITableBuilder::printSet(UVector *) {}
#endif
//-----------------------------------------------------------------------------