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:
committed by
Andrew Johnson
parent
3da69257a0
commit
dd74289eaf
@@ -33,7 +33,7 @@ MAIN(testOperators)
|
||||
PVDoublePtr pvValue = pvStructure->getSubField<PVDouble>("value");
|
||||
*pvValue <<= testDV;
|
||||
|
||||
double dv;
|
||||
double dv = 0.;
|
||||
*pvValue >>= dv;
|
||||
testOk1(testDV == dv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user