fixed gnu warnings

This commit is contained in:
Jeff Hill
2001-02-16 03:19:38 +00:00
parent 10c1cd7569
commit a1801b7808
5 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ void dbChannelIO::show ( unsigned level ) const
{
this->lock ();
printf ("channel at %p attached to local database record %s\n",
this, this->addr.precord->name );
static_cast <const void *> ( this ), this->addr.precord->name );
if ( level > 0u ) {
printf ( "\ttype %s, element count %li, field at %p\n",
+6 -3
View File
@@ -110,10 +110,13 @@ extern "C" void putNotifyCompletion ( putNotify *ppn )
void dbPutNotifyBlocker::show ( unsigned level ) const
{
printf ( "put notify blocker at %p\n", this );
printf ( "put notify blocker at %p\n",
static_cast <const void *> ( this ) );
if ( level > 0u ) {
printf ( "\tdbPutNotifyIO at %p\n", this->pPN );
printf ( "\tdbChannelIO at %p\n", &this->chan );
printf ( "\tdbPutNotifyIO at %p\n",
static_cast <void *> ( this->pPN ) );
printf ( "\tdbChannelIO at %p\n",
static_cast <void *> ( &this->chan ) );
}
if ( level > 1u ) {
this->block.show ( level - 2u );
+2 -1
View File
@@ -165,7 +165,8 @@ dbEventSubscription dbServiceIO::subscribe ( struct dbAddr &addr, dbSubscription
void dbServiceIO::show ( unsigned level ) const
{
this->mutex.lock ();
printf ( "dbServiceIO at %p\n", this );
printf ( "dbServiceIO at %p\n",
static_cast <const void *> ( this ) );
if (level > 0u ) {
printf ( "\tevent call back cache location %p, and its size %lu\n",
this->pEventCallbackCache, this->eventCallbackCacheSize );
+6 -4
View File
@@ -96,17 +96,19 @@ int dbSubscriptionIO::begin ( struct dbAddr &addr, unsigned mask )
void dbSubscriptionIO::show ( unsigned level ) const
{
printf ( "Data base subscription IO at %p\n", this );
printf ( "Data base subscription IO at %p\n",
static_cast <const void *> ( this ) );
if ( level > 0u ) {
short tmpType;
if ( this->type < SHRT_MAX ) {
tmpType = static_cast < short > ( this->type );
printf ( "\ttype %s, count %lu, channel at %p\n",
dbf_type_to_text ( tmpType ), this->count, &this->chan );
dbf_type_to_text ( tmpType ), this->count,
static_cast <void *> ( &this->chan ) );
}
else {
printf ("strange type !, count %lu, channel at %p\n",
this->count, &this->chan );
printf ( "strange type !, count %lu, channel at %p\n",
this->count, static_cast <void *> ( &this->chan ) );
}
}
}
+1 -1
View File
@@ -317,7 +317,7 @@ gddAppFuncTableStatus gddAppFuncTable<PV>::callReadFunc (PV &pv, gdd &value)
return S_gddAppFuncTable_badType;
}
pFunc = this->pMFuncRead[type];
if (pFunc==NULL) {
if ( ! pFunc ) {
errPrintf (S_gddAppFuncTable_badType, __FILE__,
__LINE__, "- ukn appl type code = %u\n",
type);