mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-3222 Fix some compiler warnings.
X-SVN-Rev: 13932
This commit is contained in:
parent
560eb13f18
commit
423411ca70
3 changed files with 11 additions and 5 deletions
|
@ -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 *)
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Reference in a new issue