From 9e09fc31f3d0305977e04f381915fbe101050f0b Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 12 Oct 2023 18:28:09 +0000 Subject: [PATCH] add [[maybe_unused]] --- onnxruntime/test/onnx/TestCase.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/test/onnx/TestCase.cc b/onnxruntime/test/onnx/TestCase.cc index cb9633ff049a5..bc88f69fa990f 100644 --- a/onnxruntime/test/onnx/TestCase.cc +++ b/onnxruntime/test/onnx/TestCase.cc @@ -186,7 +186,7 @@ void LoopDataFile(int test_data_pb_fd, bool is_input, const TestModelInfo& model f.SetCloseOnDelete(true); google::protobuf::io::CodedInputStream coded_input(&f); bool clean_eof = false; - int item_id = 1; + [[maybe_unused]] int item_id = 1; for (proto::TraditionalMLData data; ParseDelimitedFromCodedStream(&data, &coded_input, &clean_eof); ++item_id, data.Clear()) {