From 12575ec6e9a936292ee1915b078b0bf0015c4438 Mon Sep 17 00:00:00 2001 From: Ayan Halder Date: Wed, 25 Dec 2019 23:27:12 +0000 Subject: 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 --- include/armnn/Logging.hpp | 7 ++++--- 1 file 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 - +#include 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 } }; -- cgit v1.2.1