fix for compiler warnings in mantis 337

This commit is contained in:
Jeff Hill
2009-07-07 23:47:38 +00:00
parent f7bfbf73f8
commit 0e4891201e
3 changed files with 8 additions and 8 deletions

View File

@@ -178,7 +178,7 @@ epicsUInt8 comQueRecv::popUInt8 ()
if ( ! pComBuf ) {
comBuf::throwInsufficentBytesException ();
}
epicsUInt8 tmp = 0;
epicsUInt8 tmp = '\0';
comBuf::popStatus status = pComBuf->pop ( tmp );
if ( ! status.success ) {
comBuf::throwInsufficentBytesException ();
@@ -197,7 +197,7 @@ epicsUInt16 comQueRecv::popUInt16 ()
comBuf::throwInsufficentBytesException ();
}
// try first for all in one buffer efficent version
epicsUInt16 tmp;
epicsUInt16 tmp = 0;
comBuf::popStatus status = pComBuf->pop ( tmp );
if ( status.success ) {
this->nBytesPending -= sizeof ( epicsUInt16 );
@@ -216,7 +216,7 @@ epicsUInt32 comQueRecv::popUInt32 ()
comBuf::throwInsufficentBytesException ();
}
// try first for all in one buffer efficent version
epicsUInt32 tmp;
epicsUInt32 tmp = 0;
comBuf::popStatus status = pComBuf->pop ( tmp );
if ( status.success ) {
this->nBytesPending -= sizeof ( epicsUInt32 );