diff --git a/src/ca/bhe.cpp b/src/ca/bhe.cpp index f217c0be4..ad1081acb 100644 --- a/src/ca/bhe.cpp +++ b/src/ca/bhe.cpp @@ -174,7 +174,7 @@ bool bhe::updatePeriod ( const epicsTime & programBeginTime, return netChange; } -void bhe::show ( unsigned level ) const +void bhe::show ( unsigned /* level */ ) const { ::printf ( "CA beacon hash entry at %p with average period %f\n", static_cast ( this ), this->averagePeriod ); diff --git a/src/libCom/cxxTemplates/resourceLib.h b/src/libCom/cxxTemplates/resourceLib.h index 0c5b909b5..65eaa9644 100644 --- a/src/libCom/cxxTemplates/resourceLib.h +++ b/src/libCom/cxxTemplates/resourceLib.h @@ -328,21 +328,23 @@ inline resTableIndex resTable::hash ( const ID & idIn ) const template void resTable::show ( unsigned level ) const { - tsSLList * pList = this->pTable; unsigned N = this->tableSize (); printf ( "%u bucket hash table with %u items of type %s installed\n", N, this->nInUse, typeid(T).name() ); - while ( pList < &this->pTable[N] ) { - tsSLIter pItem = pList->firstIter (); - while ( pItem.valid () ) { - tsSLIter pNext = pItem; - pNext++; - pItem.pointer()->show ( level ); - pItem = pNext; + { + tsSLList * pList = this->pTable; + while ( pList < &this->pTable[N] ) { + tsSLIter pItem = pList->firstIter (); + while ( pItem.valid () ) { + tsSLIter pNext = pItem; + pNext++; + pItem.pointer()->show ( level ); + pItem = pNext; + } + pList++; } - pList++; } if ( level >=1u ) {