Silence warning about uninitialized local variable

found by static code analysis (cppcheck @ sonarqube)
(that doesn't realize ">>=" calls an overloaded operator)
This commit is contained in:
Ralph Lange
2023-05-26 11:00:37 +02:00
committed by Andrew Johnson
parent 3da69257a0
commit dd74289eaf

View File

@@ -33,7 +33,7 @@ MAIN(testOperators)
PVDoublePtr pvValue = pvStructure->getSubField<PVDouble>("value");
*pvValue <<= testDV;
double dv;
double dv = 0.;
*pvValue >>= dv;
testOk1(testDV == dv);