bugfix: test if the empty index dispatcher warning log should be displayed
This commit is contained in:
parent
c2d663f495
commit
6eff32254e
1 changed files with 3 additions and 2 deletions
|
|
@ -120,9 +120,10 @@ public:
|
|||
//! Add more indexes set and their corresponding repairer operator address to the list
|
||||
void add( ICT idx, edoRepairer<EOT>* op )
|
||||
{
|
||||
//assert( idx.size() > 0 );
|
||||
#ifndef NDEBUG
|
||||
eo::log << eo::warnings << "A repairer is added to the dispatcher while having an empty index list, nothing will be repaired" << std::endl;
|
||||
if( idx.size() == 0 ) {
|
||||
eo::log << eo::warnings << "A repairer is added to the dispatcher while having an empty index list, nothing will be repaired" << std::endl;
|
||||
}
|
||||
#endif
|
||||
assert( op != NULL );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue