From: svost Date: Sun, 12 Apr 2015 18:37:11 +0000 (+0300) Subject: Clang scan-build warning: Value stored to nSize is never read. X-Git-Tag: nvc-v0.5.3~40^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=dce088ef6232fb5f6af4727cd36dcb073099c2a6 Clang scan-build warning: Value stored to nSize is never read. --- diff --git a/src/serialize.h b/src/serialize.h index a1f8a0e..52328c3 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -1106,10 +1106,7 @@ public: if (nReadPosNext >= vch.size()) { if (nReadPosNext > vch.size()) - { setstate(std::ios::failbit, "CDataStream::ignore() : end of data"); - nSize = (int)(vch.size() - nReadPos); - } nReadPos = 0; vch.clear(); return (*this);