aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Lamberti <derek.lamberti@arm.com>2020-02-19 13:17:02 +0000
committerDerek Lamberti <derek.lamberti@arm.com>2020-03-05 08:58:42 +0000
commit9f8cad27f34f31560e55c65451fcd8d4ec2f334e (patch)
treebddf97e55271153776c23cea1c19d2442bb6bb38
parente8502484d0c2c498c4f031c9bec87d0554a0b43e (diff)
downloadarmnn-9f8cad27f34f31560e55c65451fcd8d4ec2f334e.tar.gz
IVGCVSW-4482 Introduce IgnoreUnused implementation
Change-Id: Iad534e0e15ce561be6d0ffa23be19496be361385 Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
-rw-r--r--CMakeLists.txt1
-rw-r--r--include/armnn/utility/IgnoreUnused.hpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5da8133a39..b85030ac5a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -247,6 +247,7 @@ list(APPEND armnn_sources
include/armnn/Version.hpp
include/armnn/profiling/IProfilingGuidGenerator.hpp
include/armnn/profiling/ISendTimelinePacket.hpp
+ include/armnn/utility/IgnoreUnused.hpp
profiling/common/include/SocketConnectionException.hpp
src/armnn/layers/LayerCloneBase.hpp
src/armnn/layers/LayerWithParameters.hpp
diff --git a/include/armnn/utility/IgnoreUnused.hpp b/include/armnn/utility/IgnoreUnused.hpp
new file mode 100644
index 0000000000..1f9bbe7a28
--- /dev/null
+++ b/include/armnn/utility/IgnoreUnused.hpp
@@ -0,0 +1,16 @@
+//
+// Copyright © 2020 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+namespace armnn
+{
+
+// Utility function to selectively silence unused variable compiler warnings
+
+template<typename ... Ts>
+inline void IgnoreUnused(Ts&&...){}
+
+} //namespace armnn \ No newline at end of file