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 authored and Andrew Johnson committed 2023-11-01 09:41:07 -05:00
1 parent 3da69257a0
commit dd74289eaf
1 file changed
+1 -1
+1 -1
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);