fixed gnu warnings

This commit is contained in:
Jeff Hill
2001-05-23 00:48:41 +00:00
parent 069e25aa72
commit 245bd5ab5e
7 changed files with 30 additions and 26 deletions
+2 -2
View File
@@ -1253,8 +1253,8 @@ void eventClearTest ( chid chan )
* verify that we can at least write and read back the same array
* if multiple elements are present
*/
static arrayReadNotifyComplete = 0;
static arrayWriteNotifyComplete = 0;
static unsigned arrayReadNotifyComplete = 0;
static unsigned arrayWriteNotifyComplete = 0;
void arrayReadNotify ( struct event_handler_args args )
{
dbr_double_t *pWF = ( dbr_double_t * ) ( args.usr );
+3 -1
View File
@@ -153,7 +153,9 @@ void oldCAC::exception ( int status, const char *pContext,
else {
this->clientCtx.signal ( status, pFileName, lineNo,
"op=%u, channel=%s, type=%s, count=lu, ctx=\"%s\"",
op, ca_name ( &chan ), dbr_type_to_text ( type ), count, pContext );
op, ca_name ( &chan ),
dbr_type_to_text ( static_cast <int> ( type ) ),
count, pContext );
}
}
+3 -2
View File
@@ -117,14 +117,15 @@ void oldChannelNotify::readException ( int status, const char *pContext,
unsigned type, arrayElementCount count, void *pValue )
{
ca_signal_formated ( status, 0, 0u, "ctx=%s type=%s count=%u ptr=%p",
pContext, dbr_type_to_text ( type ), count, pValue );
pContext, dbr_type_to_text ( static_cast < int > ( type ) ),
count, pValue );
}
void oldChannelNotify::writeException ( int status, const char *pContext,
unsigned type, arrayElementCount count )
{
ca_signal_formated ( status, 0, 0u, "ctx=%s type=%s count=%u",
pContext, dbr_type_to_text ( type ), count );
pContext, dbr_type_to_text ( static_cast < int > ( type ) ), count );
}
bool oldChannelNotify::includeFirstConnectInCountOfOutstandingIO () const
+2 -1
View File
@@ -77,7 +77,8 @@ void syncGroupWriteNotify::exception (
{
ca_signal_formated ( status, __FILE__, __LINE__,
"CA sync group write request for channel \"%s\" failed because \"%s\" type=%s count=%u\n",
this->chan->pName(), pContext, dbr_type_to_text ( type ), count);
this->chan->pName(), pContext,
dbr_type_to_text ( static_cast < int > ( type ) ), count);
//
// This notify is left installed at this point as a place holder indicating that
// all requests have not been completed. This notify is not uninstalled until
+1 -1
View File
@@ -22,7 +22,7 @@ extern "C" void epicsShareAPI ca_test_event ( struct event_handler_args args )
switch ( args.type ) {
case DBR_STRING:
printf ( "CAC: Value:\t<%s>\n", (dbr_string_t *) args.dbr );
printf ( "CAC: Value:\t<%s>\n", (char *) args.dbr );
break;
case DBR_CHAR:
printf ( "CAC: Value:\t<%d>\n", *(dbr_char_t *) args.dbr );
-1
View File
@@ -23,7 +23,6 @@
#include "epicsTimer.h"
#include "epicsMemory.h"
#include "ipAddrToAsciiAsynchronous.h"
#include "osiWireFormat.h"
#include "comBuf.h"
#include "netiiu.h"