aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAyan Halder <ayan.halder@arm.com>2019-12-25 23:27:12 +0000
committerDerek Lamberti <derek.lamberti@arm.com>2019-12-30 14:26:06 +0000
commit12575ec6e9a936292ee1915b078b0bf0015c4438 (patch)
tree6bacf4c4d12c5aa261940fa4c7cb639d30e17655
parentf2fa51031b0cf64a93da1dec9d3abd8c4ee3a13c (diff)
downloadarmnn-12575ec6e9a936292ee1915b078b0bf0015c4438.tar.gz
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
-rw-r--r--include/armnn/Logging.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/armnn/Logging.hpp b/include/armnn/Logging.hpp
index 9bf086bf04..72c2194b45 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 @@ public:
#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
}
};