diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-12-10 21:12:59 +0000 |
---|---|---|
committer | Francis Murtagh <francis.murtagh@arm.com> | 2019-12-31 10:02:58 +0000 |
commit | 94a88d2b21d9ca3f42dc3435695be31b5591230b (patch) | |
tree | edf9381fa095561706353773c155a2c922a50dc8 /src/armnn/layers/DebugLayer.cpp | |
parent | ff3c426ffd799abd66e4280da559384d86702721 (diff) | |
download | armnn-94a88d2b21d9ca3f42dc3435695be31b5591230b.tar.gz |
IVGCVSW-4246 Clean build Layers with -Wextra
Change-Id: I649cd2304fb0040164763d31a12fc77c6c3bed87
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/armnn/layers/DebugLayer.cpp')
-rw-r--r-- | src/armnn/layers/DebugLayer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/armnn/layers/DebugLayer.cpp b/src/armnn/layers/DebugLayer.cpp index 34912731cb..d0e0f037e2 100644 --- a/src/armnn/layers/DebugLayer.cpp +++ b/src/armnn/layers/DebugLayer.cpp @@ -9,6 +9,8 @@ #include <backendsCommon/WorkloadData.hpp> #include <backendsCommon/WorkloadFactory.hpp> +#include <boost/core/ignore_unused.hpp> + namespace armnn { @@ -16,8 +18,7 @@ DebugLayer::DebugLayer(const char* name) : Layer(1, 1, LayerType::Debug, name) {} -std::unique_ptr<IWorkload> DebugLayer::CreateWorkload(const Graph& graph, - const IWorkloadFactory& factory) const +std::unique_ptr<IWorkload> DebugLayer::CreateWorkload(const IWorkloadFactory& factory) const { const Layer& prevLayer = GetInputSlot(0).GetConnectedOutputSlot()->GetOwningLayer(); @@ -26,7 +27,7 @@ std::unique_ptr<IWorkload> DebugLayer::CreateWorkload(const Graph& graph, descriptor.m_LayerName = prevLayer.GetNameStr(); descriptor.m_SlotIndex = GetInputSlot(0).GetConnectedOutputSlot()->CalculateIndexOnOwner(); - return factory.CreateDebug(descriptor, PrepInfoAndDesc(descriptor, graph)); + return factory.CreateDebug(descriptor, PrepInfoAndDesc(descriptor)); } DebugLayer* DebugLayer::Clone(Graph& graph) const @@ -52,6 +53,7 @@ void DebugLayer::ValidateTensorShapesFromInputs() void DebugLayer::Accept(ILayerVisitor& visitor) const { // by design debug layers are never in input graphs + boost::ignore_unused(visitor); throw armnn::Exception("DebugLayer should never appear in an input graph"); } |