From c4b54c6d4d4efe3a53861459b1de4e1912353a89 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Fri, 27 Apr 2012 13:25:16 -0400 Subject: [PATCH] Fix compiler warnings and minor issues. --- src/ioc/db/filters/test/dbndTest.c | 4 ++-- src/ioc/db/filters/test/tsTest.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ioc/db/filters/test/dbndTest.c b/src/ioc/db/filters/test/dbndTest.c index 1d3f543c5..437528695 100644 --- a/src/ioc/db/filters/test/dbndTest.c +++ b/src/ioc/db/filters/test/dbndTest.c @@ -51,7 +51,7 @@ static void fl_setup(dbChannel *chan, db_field_log *pfl) { dbChannelFieldSize(chan)); } -static changeValue(db_field_log *pfl2, long val) { +static void changeValue(db_field_log *pfl2, long val) { pfl2->u.v.field.dbf_long = val; testDiag("new value: %ld", val); } @@ -99,7 +99,7 @@ MAIN(dbndTest) ELLNODE *node; chPostEventFunc *cb_out = NULL; void *arg_out = NULL; - db_field_log *pfl, *pfl2; + db_field_log *pfl2; db_field_log fl1; testPlan(61); diff --git a/src/ioc/db/filters/test/tsTest.c b/src/ioc/db/filters/test/tsTest.c index f02c5d441..806ba864d 100644 --- a/src/ioc/db/filters/test/tsTest.c +++ b/src/ioc/db/filters/test/tsTest.c @@ -83,7 +83,7 @@ MAIN(tsTest) testOk(pfl2 == &fl1, "ts filter does not drop or replace field_log"); testOk(fl_equal_ex_ts(&fl1, pfl2), "ts filter does not change field_log data"); - testOk(pfl2 = db_create_read_log(pch), "create field log from channel"); + testOk(!!(pfl2 = db_create_read_log(pch)), "create field log from channel"); epicsTimeStamp stamp = pfl2->time; pfl2 = dbChannelRunPreChain(pch, &fl1); epicsTimeStamp now; epicsTimeGetCurrent(&now);