aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2020-01-02 13:50:57 +0000
committerNarumol Prangnawarat <narumol.prangnawarat@arm.com>2020-01-03 11:06:50 +0000
commitf143fba6e617267ed33acc8b3e1eb2130de0ffe0 (patch)
tree8663f7e4740feb1c33de01f44cea1d31270c2b7d
parentd9d61f5aca60a1a1fd4b675732cbe8176fcec093 (diff)
downloadarmnn-f143fba6e617267ed33acc8b3e1eb2130de0ffe0.tar.gz
IVGCVSW-4246 Clean build of profiling with -Wextra Pt2
Change-Id: Iae306546e7c009105712f177943ed76451bbe8e7 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
-rw-r--r--src/profiling/CounterDirectory.cpp3
-rw-r--r--src/profiling/test/SendCounterPacketTests.hpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/profiling/CounterDirectory.cpp b/src/profiling/CounterDirectory.cpp
index 5a69e1c802..6b2a945c9c 100644
--- a/src/profiling/CounterDirectory.cpp
+++ b/src/profiling/CounterDirectory.cpp
@@ -9,6 +9,7 @@
#include <armnn/Exceptions.hpp>
#include <armnn/Conversion.hpp>
+#include <boost/core/ignore_unused.hpp>
#include <boost/format.hpp>
namespace armnn
@@ -285,6 +286,8 @@ const Counter* CounterDirectory::RegisterCounter(const BackendId& backendId,
const Optional<uint16_t>& deviceUid,
const Optional<uint16_t>& counterSetUid)
{
+ boost::ignore_unused(backendId);
+
// Check that the given parent category name is valid
if (parentCategoryName.empty() ||
!IsValidSwTraceString<SwTraceNameCharPolicy>(parentCategoryName))
diff --git a/src/profiling/test/SendCounterPacketTests.hpp b/src/profiling/test/SendCounterPacketTests.hpp
index d0b13b59c0..6b244be0b4 100644
--- a/src/profiling/test/SendCounterPacketTests.hpp
+++ b/src/profiling/test/SendCounterPacketTests.hpp
@@ -14,6 +14,7 @@
#include <armnn/Conversion.hpp>
#include <boost/assert.hpp>
+#include <boost/core/ignore_unused.hpp>
#include <boost/numeric/conversion/cast.hpp>
namespace armnn
@@ -442,6 +443,8 @@ public:
const armnn::Optional<uint16_t>& deviceUid = armnn::EmptyOptional(),
const armnn::Optional<uint16_t>& counterSetUid = armnn::EmptyOptional())
{
+ boost::ignore_unused(backendId);
+
// Get the number of cores from the argument only
uint16_t deviceCores = numberOfCores.has_value() ? numberOfCores.value() : 0;