From 9f8cad27f34f31560e55c65451fcd8d4ec2f334e Mon Sep 17 00:00:00 2001 From: Derek Lamberti Date: Wed, 19 Feb 2020 13:17:02 +0000 Subject: IVGCVSW-4482 Introduce IgnoreUnused implementation Change-Id: Iad534e0e15ce561be6d0ffa23be19496be361385 Signed-off-by: Derek Lamberti --- CMakeLists.txt | 1 + include/armnn/utility/IgnoreUnused.hpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 include/armnn/utility/IgnoreUnused.hpp 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 +inline void IgnoreUnused(Ts&&...){} + +} //namespace armnn \ No newline at end of file -- cgit v1.2.1