Clean up warnings from gcc 4.6.3
This commit is contained in:
@@ -71,9 +71,8 @@ static long read_event(eventRecord *prec)
|
||||
long status;
|
||||
char newEvent[MAX_STRING_SIZE];
|
||||
|
||||
if (prec->inp.type != CONSTANT)
|
||||
{
|
||||
status = dbGetLinkValue(&prec->inp, DBR_STRING, newEvent, 0, 0);
|
||||
if (prec->inp.type != CONSTANT) {
|
||||
status = dbGetLink(&prec->inp, DBR_STRING, newEvent, 0, 0);
|
||||
if (status) return status;
|
||||
if (strcmp(newEvent, prec->val) != 0) {
|
||||
strcpy(prec->val, newEvent);
|
||||
|
||||
@@ -52,8 +52,6 @@ epicsExportAddress(dset,devHistogramSoft);
|
||||
|
||||
static long init_record(histogramRecord *prec)
|
||||
{
|
||||
long status = 0;
|
||||
|
||||
/* histogram.svl must be a CONSTANT or a PV_LINK or a DB_LINK or a CA_LINK*/
|
||||
switch (prec->svl.type) {
|
||||
case (CONSTANT) :
|
||||
@@ -69,13 +67,11 @@ static long init_record(histogramRecord *prec)
|
||||
"devHistogramSoft (init_record) Illegal SVL field");
|
||||
return(S_db_badField);
|
||||
}
|
||||
return(status);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static long read_histogram(histogramRecord *prec)
|
||||
{
|
||||
long status;
|
||||
|
||||
status = dbGetLink(&prec->svl,DBR_DOUBLE, &prec->sgnl,0,0);
|
||||
return(0); /*add count*/
|
||||
dbGetLink(&prec->svl, DBR_DOUBLE, &prec->sgnl, 0, 0);
|
||||
return 0; /*add count*/
|
||||
}
|
||||
|
||||
@@ -48,13 +48,11 @@ epicsExportAddress(dset,devLoSoft);
|
||||
|
||||
static long init_record(longoutRecord *prec)
|
||||
{
|
||||
return(0);
|
||||
return 0;
|
||||
} /* end init_record() */
|
||||
|
||||
static long write_longout(longoutRecord *prec)
|
||||
{
|
||||
long status;
|
||||
|
||||
status = dbPutLink(&prec->out,DBR_LONG, &prec->val,1);
|
||||
return(0);
|
||||
dbPutLink(&prec->out,DBR_LONG, &prec->val,1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -59,8 +59,6 @@ static long init_record(mbboDirectRecord *prec)
|
||||
|
||||
static long write_mbbo(mbboDirectRecord *prec)
|
||||
{
|
||||
long status;
|
||||
|
||||
status = dbPutLink(&prec->out,DBR_USHORT,&prec->val,1);
|
||||
return(0);
|
||||
dbPutLink(&prec->out,DBR_USHORT,&prec->val,1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -62,10 +62,9 @@ static long init_record(mbboDirectRecord *prec)
|
||||
|
||||
static long write_mbbo(mbboDirectRecord *prec)
|
||||
{
|
||||
long status;
|
||||
unsigned long data;
|
||||
|
||||
data = prec->rval & prec->mask;
|
||||
status = dbPutLink(&prec->out,DBR_LONG, &data,1);
|
||||
return(0);
|
||||
dbPutLink(&prec->out,DBR_LONG, &data,1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -49,19 +49,13 @@ epicsExportAddress(dset,devMbboSoft);
|
||||
|
||||
static long init_record(mbboRecord *prec)
|
||||
{
|
||||
|
||||
long status=0;
|
||||
|
||||
/*dont convert*/
|
||||
status=2;
|
||||
return status;
|
||||
return 2;
|
||||
|
||||
} /* end init_record() */
|
||||
|
||||
static long write_mbbo(mbboRecord *prec)
|
||||
{
|
||||
long status;
|
||||
|
||||
status = dbPutLink(&prec->out,DBR_USHORT, &prec->val,1);
|
||||
return(0);
|
||||
dbPutLink(&prec->out,DBR_USHORT, &prec->val,1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -48,24 +48,19 @@ epicsExportAddress(dset,devMbboSoftRaw);
|
||||
|
||||
static long init_record(mbboRecord *prec)
|
||||
{
|
||||
|
||||
long status;
|
||||
|
||||
/*to preserve old functionality*/
|
||||
if(prec->nobt == 0) prec->mask = 0xffffffff;
|
||||
if (prec->nobt == 0) prec->mask = 0xffffffff;
|
||||
prec->mask <<= prec->shft;
|
||||
/*dont convert*/
|
||||
status = 2;
|
||||
return status;
|
||||
return 2;
|
||||
|
||||
} /* end init_record() */
|
||||
|
||||
static long write_mbbo(mbboRecord *prec)
|
||||
{
|
||||
long status;
|
||||
unsigned long data;
|
||||
|
||||
data = prec->rval & prec->mask;
|
||||
status = dbPutLink(&prec->out,DBR_LONG, &data,1);
|
||||
return(0);
|
||||
dbPutLink(&prec->out,DBR_LONG, &data,1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user