fixed sun pro warning

This commit is contained in:
Jeff Hill
2001-08-29 20:25:24 +00:00
parent 40e476f7b9
commit 7fb6862dfb
2 changed files with 12 additions and 10 deletions

View File

@@ -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 <const void *> ( this ), this->averagePeriod );

View File

@@ -328,21 +328,23 @@ inline resTableIndex resTable<T,ID>::hash ( const ID & idIn ) const
template <class T, class ID>
void resTable<T,ID>::show ( unsigned level ) const
{
tsSLList<T> * 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<T> pItem = pList->firstIter ();
while ( pItem.valid () ) {
tsSLIter<T> pNext = pItem;
pNext++;
pItem.pointer()->show ( level );
pItem = pNext;
{
tsSLList<T> * pList = this->pTable;
while ( pList < &this->pTable[N] ) {
tsSLIter<T> pItem = pList->firstIter ();
while ( pItem.valid () ) {
tsSLIter<T> pNext = pItem;
pNext++;
pItem.pointer()->show ( level );
pItem = pNext;
}
pList++;
}
pList++;
}
if ( level >=1u ) {