fixed gnu warnings
This commit is contained in:
+2
-2
@@ -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
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "epicsTimer.h"
|
||||
#include "epicsMemory.h"
|
||||
#include "ipAddrToAsciiAsynchronous.h"
|
||||
#include "osiWireFormat.h"
|
||||
|
||||
#include "comBuf.h"
|
||||
#include "netiiu.h"
|
||||
|
||||
Reference in New Issue
Block a user