From f76d453a7add895b86967caca28ef5c00a68ed5b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 30 Oct 2017 19:54:09 -0500 Subject: [PATCH] ringPointerTest: Prevent warnings --- src/libCom/test/ringPointerTest.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libCom/test/ringPointerTest.c b/src/libCom/test/ringPointerTest.c index 92401d123..65a349489 100644 --- a/src/libCom/test/ringPointerTest.c +++ b/src/libCom/test/ringPointerTest.c @@ -238,9 +238,11 @@ MAIN(ringPointerTest) testPlan(37); testSingle(); - epicsThreadSetPriority(epicsThreadGetIdSelf(), epicsThreadPriorityScanLow); + if (prio) + epicsThreadSetPriority(epicsThreadGetIdSelf(), epicsThreadPriorityScanLow); testPair(0); testPair(1); - epicsThreadSetPriority(epicsThreadGetIdSelf(), prio); + if (prio) + epicsThreadSetPriority(epicsThreadGetIdSelf(), prio); return testDone(); }