Fix CppCheck in rstlvidset.h

/libretroshare/src/serialiser/rstlvidset.h:93: warning:
Cppcheck(unreadVariable): Variable 'ok' is assigned a value that is
never used.
This commit is contained in:
Phenom 2017-07-28 13:27:09 +02:00 committed by csoler
parent 371d8205d5
commit 889f23f9d8

View File

@ -95,6 +95,9 @@ template<class ID_CLASS,uint32_t TLV_TYPE> class t_RsTlvIdSet: public RsTlvItem
} }
if(*offset != tlvend) if(*offset != tlvend)
std::cerr << "(EE) deserialisaiton error in " << __PRETTY_FUNCTION__ << std::endl; std::cerr << "(EE) deserialisaiton error in " << __PRETTY_FUNCTION__ << std::endl;
else if(!ok)
std::cerr << "(WW) something wrong in ID_CLASS.deserialise in " << __PRETTY_FUNCTION__ << std::endl;
return *offset == tlvend ; return *offset == tlvend ;
} }
virtual std::ostream &print(std::ostream &out, uint16_t /* indent */) const virtual std::ostream &print(std::ostream &out, uint16_t /* indent */) const