From 97c004918546c61b36f808350d1d9284d4f246e1 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Mon, 3 Aug 2026 18:15:29 -0400 Subject: [PATCH] tests: remove unused buffer index from bool input helper The bool specialization of prepareKFSInferInputTensor tracks a buffer index while locating the requested input, but the specialization never consumes that index. Gcc 16 diagnoses the value as set but unused under the warnings-as-errors build. Remove the dead counter and increment. The input-name lookup and bool tensor contents are unchanged. --- src/test/test_utils.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/test_utils.hpp b/src/test/test_utils.hpp index c0d8c768ea..e75d821006 100644 --- a/src/test/test_utils.hpp +++ b/src/test/test_utils.hpp @@ -206,12 +206,10 @@ inline void prepareKFSInferInputTensor(::KFSRequest& request, const std::s throw std::string("Unsupported"); } auto it = request.mutable_inputs()->begin(); - size_t bufferId = 0; while (it != request.mutable_inputs()->end()) { if (it->name() == name) break; ++it; - ++bufferId; } KFSTensorInputProto* tensor; if (it != request.mutable_inputs()->end()) {