To avoid warnings on some compilers added extra parens to if ((error = func()))
diff --git a/ndn-cpp/encoding/binary-xml-structure-decoder.hpp b/ndn-cpp/encoding/binary-xml-structure-decoder.hpp
index 331f3d3..e83dd5b 100644
--- a/ndn-cpp/encoding/binary-xml-structure-decoder.hpp
+++ b/ndn-cpp/encoding/binary-xml-structure-decoder.hpp
@@ -32,7 +32,7 @@
bool findElementEnd(unsigned char *input, unsigned int inputLength)
{
ndn_Error error;
- if (error = ndn_BinaryXmlStructureDecoder_findElementEnd(this, input, inputLength))
+ if ((error = ndn_BinaryXmlStructureDecoder_findElementEnd(this, input, inputLength)))
throw std::runtime_error(ndn_getErrorString(error));
return gotElementEnd();
}