From e49f7a8b71d64596f74ab03be6960ab576b02a16 Mon Sep 17 00:00:00 2001 From: "S. Manohar Karlapalem" Date: Wed, 4 Nov 2020 12:12:16 -0800 Subject: [PATCH] Fix build error due to unused variable (#5698) Fixes build error due to unused variable when building with OpenVINO 2020.2 and 2020.3. --- onnxruntime/core/providers/openvino/backend_utils.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/onnxruntime/core/providers/openvino/backend_utils.cc b/onnxruntime/core/providers/openvino/backend_utils.cc index ef7985d059..6eb41edcb2 100644 --- a/onnxruntime/core/providers/openvino/backend_utils.cc +++ b/onnxruntime/core/providers/openvino/backend_utils.cc @@ -313,6 +313,7 @@ void FillInputBlob(InferenceEngine::Blob::Ptr& inputBlob, size_t request_id, siz size_t input_data_size = inputBlob->byteSize(); #if (defined OPENVINO_2020_2) || (defined OPENVINO_2020_3) + ORT_UNUSED_PARAMETER(input_name); const OrtValue* tensor = ort.KernelContext_GetInput(context, subgraph_context.input_indexes[request_id]); #else ORT_UNUSED_PARAMETER(request_id);