diff --git a/testApp/copy/testPVCopy.cpp b/testApp/copy/testPVCopy.cpp index 030c4ee..26923fb 100644 --- a/testApp/copy/testPVCopy.cpp +++ b/testApp/copy/testPVCopy.cpp @@ -41,7 +41,6 @@ static void testPVScalar( PVScalarPtr pvValueMaster; PVScalarPtr pvValueCopy; BitSetPtr bitSet; - size_t offset; ConvertPtr convert = getConvert(); pvValueMaster = pvMaster->getSubField(valueNameMaster); @@ -58,7 +57,7 @@ static void testPVScalar( testOk1(convert->toDouble(pvValueCopy)==.06); testOk1(bitSet->get(pvValueCopy->getFieldOffset())); - offset = pvCopy->getCopyOffset(pvValueMaster); + pvCopy->getCopyOffset(pvValueMaster); bitSet->clear(); convert->fromDouble(pvValueMaster,1.0); @@ -87,7 +86,6 @@ static void testPVScalarArray( PVScalarArrayPtr pvValueMaster; PVScalarArrayPtr pvValueCopy; BitSetPtr bitSet; - size_t offset; size_t n = 5; shared_vector values(n); shared_vector cvalues; @@ -113,7 +111,7 @@ static void testPVScalarArray( pvValueCopy->getAs(cvalues); testOk1(cvalues[0]==0.06); - offset = pvCopy->getCopyOffset(pvValueMaster); + pvCopy->getCopyOffset(pvValueMaster); bitSet->clear(); values.resize(n); diff --git a/testApp/misc/testTimeStamp.cpp b/testApp/misc/testTimeStamp.cpp index e53b736..6b40824 100644 --- a/testApp/misc/testTimeStamp.cpp +++ b/testApp/misc/testTimeStamp.cpp @@ -30,7 +30,7 @@ void testTimeStampInternal() testOk1(nanoSecPerSec==1000000000); TimeStamp current; current.getCurrent(); - testDiag("current %lli %i milliSec %lli\n", + testDiag("current %lld %d milliSec %lld\n", (long long)current.getSecondsPastEpoch(), (int)current.getNanoseconds(), (long long)current.getMilliseconds()); @@ -46,7 +46,7 @@ void testTimeStampInternal() (ctm.tm_isdst==0) ? "false" : "true"); tt = time(&tt); current.fromTime_t(tt); - testDiag("fromTime_t\ncurrent %lli %i milliSec %lli\n", + testDiag("fromTime_t\ncurrent %lld %d milliSec %lld\n", (long long)current.getSecondsPastEpoch(), (int)current.getNanoseconds(), (long long)current.getMilliseconds());