diff --git a/src/db/dbChannelIO.cpp b/src/db/dbChannelIO.cpp index 10ebc9558..bd01f7e49 100644 --- a/src/db/dbChannelIO.cpp +++ b/src/db/dbChannelIO.cpp @@ -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 ( this ), this->addr.precord->name ); if ( level > 0u ) { printf ( "\ttype %s, element count %li, field at %p\n", diff --git a/src/db/dbPutNotifyBlocker.cpp b/src/db/dbPutNotifyBlocker.cpp index 0ef727652..d735c3e40 100644 --- a/src/db/dbPutNotifyBlocker.cpp +++ b/src/db/dbPutNotifyBlocker.cpp @@ -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 ( 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 ( this->pPN ) ); + printf ( "\tdbChannelIO at %p\n", + static_cast ( &this->chan ) ); } if ( level > 1u ) { this->block.show ( level - 2u ); diff --git a/src/db/dbServiceIO.cpp b/src/db/dbServiceIO.cpp index 6c43b7d09..f2fa2b32d 100644 --- a/src/db/dbServiceIO.cpp +++ b/src/db/dbServiceIO.cpp @@ -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 ( this ) ); if (level > 0u ) { printf ( "\tevent call back cache location %p, and its size %lu\n", this->pEventCallbackCache, this->eventCallbackCacheSize ); diff --git a/src/db/dbSubscriptionIO.cpp b/src/db/dbSubscriptionIO.cpp index c05c04869..aa2f81242 100644 --- a/src/db/dbSubscriptionIO.cpp +++ b/src/db/dbSubscriptionIO.cpp @@ -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 ( 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 ( &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 ( &this->chan ) ); } } } diff --git a/src/gdd/gddAppFuncTable.h b/src/gdd/gddAppFuncTable.h index 75e96fe47..9ba8438e1 100644 --- a/src/gdd/gddAppFuncTable.h +++ b/src/gdd/gddAppFuncTable.h @@ -317,7 +317,7 @@ gddAppFuncTableStatus gddAppFuncTable::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);