To avoid warnings on some compilers added extra parens to if ((error = func()))
diff --git a/ndn-cpp/encoding/binary-xml-wire-format.cpp b/ndn-cpp/encoding/binary-xml-wire-format.cpp
index f4ddf78..7556777 100644
--- a/ndn-cpp/encoding/binary-xml-wire-format.cpp
+++ b/ndn-cpp/encoding/binary-xml-wire-format.cpp
@@ -49,7 +49,7 @@
BinaryXmlDecoder decoder(input, inputLength);
ndn_Error error;
- if (error = ndn_decodeBinaryXmlInterest(&interestStruct, &decoder))
+ if ((error = ndn_decodeBinaryXmlInterest(&interestStruct, &decoder)))
throw std::runtime_error(ndn_getErrorString(error));
interest.set(interestStruct);
@@ -78,7 +78,7 @@
BinaryXmlDecoder decoder(input, inputLength);
ndn_Error error;
- if (error = ndn_decodeBinaryXmlData(&dataStruct, &decoder))
+ if ((error = ndn_decodeBinaryXmlData(&dataStruct, &decoder)))
throw std::runtime_error(ndn_getErrorString(error));
data.set(dataStruct);