summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2016-08-29 05:02:28 -0700
committerPatrick Ohly <patrick.ohly@intel.com>2016-09-20 04:47:49 -0700
commit59b55aa5cf2be44a93cbce77e153c4cd250f76f2 (patch)
tree70f15c7fb1dacbfebfd1df5a1c88fdbfa5674304
parentde53f83ce49ee75ea5ae3d86ed12a42ce83db95c (diff)
localengineds.cpp: avoid cppcheck warning
A newer cppcheck now also warns about syncop. This is a known false positive because it is okay to store an uninitialized variable in this case.
-rw-r--r--src/sysync/localengineds.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sysync/localengineds.cpp b/src/sysync/localengineds.cpp
index ca9dc36..acbec1e 100644
--- a/src/sysync/localengineds.cpp
+++ b/src/sysync/localengineds.cpp
@@ -5540,6 +5540,7 @@ bool TLocalEngineDS::engProcessRemoteItemAsServer(
aux->fChangedExisting = changedexisting;
// cppcheck-suppress uninitvar
aux->fRemainsVisible = remainsvisible;
+ // cppcheck-suppress uninitvar
aux->fSyncOp = syncop;
aux->fItemTypeID = itemtypeid;
aux->fRemoteID = remoteid;
@@ -6557,6 +6558,7 @@ bool TLocalEngineDS::engProcessRemoteItemAsClient(
// cppcheck-suppress uninitvar
aux->fRemainsVisible = remainsvisible;
+ // cppcheck-suppress uninitvar
aux->fSyncOp = syncop;
aux->fRemoteID = remoteid;
// cppcheck-suppress uninitvar