From d4eb31e7291495d5d8234a009d8a0e04cbe0000a Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 28 Nov 2017 15:44:46 -0600 Subject: [PATCH] silence warning the 'done' flag avoids actual use of uninitialized 'size'. --- src/remoteClient/clientContextImpl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index b8a215a..7c7d269 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -2182,11 +2182,11 @@ public: // defaults to queueSize/2 m_ackAny = m_queueSize/2; - bool done = false; - int32 size; - option = pvOptions->getSubField("ackAny"); if (option) { + bool done = false; + int32 size = -1; /* -1 only to silence warning, should never be used */ + if(option->getScalar()->getScalarType()==pvString) { std::string sval(option->getAs());