Fix compilation error when building for Linux (non Android)
When building for Linux, 'boost::ignore_unused()' should be used to suppress
the following error :-
error: unused parameter 's' [-Werror=unused-parameter]
Change-Id: I9ecfe93c75ee4117eb6d2e1e75442179cee9fec9
diff --git a/include/armnn/Logging.hpp b/include/armnn/Logging.hpp
index 9bf086b..72c2194 100644
--- a/include/armnn/Logging.hpp
+++ b/include/armnn/Logging.hpp
@@ -19,7 +19,7 @@
#endif
#include <boost/assert.hpp>
-
+#include <boost/core/ignore_unused.hpp>
namespace armnn
{
@@ -115,9 +115,10 @@
#if defined(_MSC_VER)
OutputDebugString(s.c_str());
OutputDebugString("\n");
-#endif
-#if defined(__ANDROID__)
+#elif defined(__ANDROID__)
__android_log_write(ANDROID_LOG_DEBUG, "armnn", s.c_str());
+#else
+ boost::ignore_unused(s);
#endif
}
};