From 901ea11e3da6b97df52bdc2a547990402e920ede Mon Sep 17 00:00:00 2001 From: Derek Lamberti Date: Tue, 10 Dec 2019 22:07:09 +0000 Subject: IVGCVSW-4246 Clean build of backends with -Wextra Change-Id: I9e8d5576b3ec04c871785d5f2f9545bf1136e59b Signed-off-by: Derek Lamberti --- src/backends/reference/RefLayerSupport.cpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/backends/reference/RefLayerSupport.cpp') diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 19b76152f3..ebcd1f633e 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -648,6 +648,8 @@ bool RefLayerSupport::IsDetectionPostProcessSupported(const TensorInfo& boxEncod const DetectionPostProcessDescriptor& descriptor, Optional reasonIfUnsupported) const { + boost::ignore_unused(anchors, detectionBoxes, detectionClasses, detectionScores, numDetections, descriptor); + bool supported = true; std::array supportedInputTypes = @@ -863,8 +865,8 @@ bool RefLayerSupport::IsGreaterSupported(const TensorInfo& input0, reasonIfUnsupported); } -bool RefLayerSupport::IsInputSupported(const TensorInfo& input, - Optional reasonIfUnsupported) const +bool RefLayerSupport::IsInputSupported(const TensorInfo& /*input*/, + Optional /*reasonIfUnsupported*/) const { return true; } @@ -1301,8 +1303,8 @@ bool RefLayerSupport::IsNormalizationSupported(const TensorInfo& input, return supported; } -bool RefLayerSupport::IsOutputSupported(const TensorInfo& output, - Optional reasonIfUnsupported) const +bool RefLayerSupport::IsOutputSupported(const TensorInfo& /*output*/, + Optional /*reasonIfUnsupported*/) const { return true; } @@ -1470,6 +1472,7 @@ bool RefLayerSupport::IsResizeSupported(const TensorInfo& input, const ResizeDescriptor& descriptor, Optional reasonIfUnsupported) const { + boost::ignore_unused(descriptor); bool supported = true; std::array supportedTypes = { @@ -1524,7 +1527,7 @@ bool RefLayerSupport::IsSliceSupported(const TensorInfo& input, const SliceDescriptor& descriptor, Optional reasonIfUnsupported) const { - ignore_unused(descriptor); + boost::ignore_unused(descriptor); bool supported = true; std::array supportedTypes = @@ -1551,7 +1554,7 @@ bool RefLayerSupport::IsSoftmaxSupported(const TensorInfo& input, const SoftmaxDescriptor& descriptor, Optional reasonIfUnsupported) const { - ignore_unused(output); + boost::ignore_unused(descriptor); bool supported = true; std::array supportedTypes = { @@ -1578,7 +1581,7 @@ bool RefLayerSupport::IsSpaceToBatchNdSupported(const TensorInfo& input, const SpaceToBatchNdDescriptor& descriptor, Optional reasonIfUnsupported) const { - ignore_unused(output); + boost::ignore_unused(descriptor); bool supported = true; std::array supportedTypes = { @@ -1811,6 +1814,7 @@ bool RefLayerSupport::IsTransposeConvolution2dSupported(const TensorInfo& input, const Optional& biases, Optional reasonIfUnsupported) const { + boost::ignore_unused(descriptor); bool supported = true; std::array supportedTypes = -- cgit v1.2.1