suppress gnu warning

This commit is contained in:
Jeff Hill
2002-12-19 01:29:57 +00:00
parent 6a32e216f7
commit 8d318d9a99
3 changed files with 29 additions and 11 deletions

View File

@@ -44,7 +44,9 @@
#include "net_convert.h"
#include "autoPtrDestroy.h"
static const char *id = "@(#) " EPICS_VERSION_STRING ", CA Portable Server Library" __DATE__;
static const char *pVersionCAC =
"@(#) " EPICS_VERSION_STRING
", CA Portable Server Library " __DATE__;
// TCP response dispatch table
const cac::pProtoStubTCP cac::tcpJumpTableCAC [] =
@@ -336,6 +338,10 @@ void cac::show ( unsigned level ) const
::printf ( "Channel Access Client Context at %p for user %s\n",
static_cast <const void *> ( this ), this->pUserName );
// this also supresses the "defined, but not used"
// warning message
::printf ( "\trevision \"%s\"\n", pVersionCAC );
if ( level > 0u ) {
this->serverTable.show ( level - 1u );
::printf ( "\tconnection time out watchdog period %f\n", this->connTMO );
@@ -370,7 +376,7 @@ void cac::show ( unsigned level ) const
::printf ( "Default mutex:\n");
this->mutex.show ( level - 4u );
::printf ( "mutex:\n" );
this->mutex.show ( level - 3u );
this->mutex.show ( level - 4u );
}
}