From a46ead85eb39f8d98df11603de1f33645744786a Mon Sep 17 00:00:00 2001 From: CEL Dev Team Date: Mon, 19 Oct 2026 18:34:16 -0700 Subject: [PATCH] Remove unused `std::string` variables to fix `-Wunused-variable` warnings. PiperOrigin-RevId: 1002742257 --- eval/compiler/resolver.cc | 4 ++-- eval/eval/function_step.cc | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/eval/compiler/resolver.cc b/eval/compiler/resolver.cc index cca72964a..3acc39165 100644 --- a/eval/compiler/resolver.cc +++ b/eval/compiler/resolver.cc @@ -196,8 +196,8 @@ std::vector Resolver::FindLazyOverloads( auto prefixes = GetPrefixesFor(name); for (const auto& prefix : prefixes) { std::string qualified_name = absl::StrCat(prefix, name); - funcs = function_registry_.FindLazyOverloadsByArity(name, receiver_style, - arity); + funcs = function_registry_.FindLazyOverloadsByArity(qualified_name, + receiver_style, arity); if (!funcs.empty()) { return funcs; } diff --git a/eval/eval/function_step.cc b/eval/eval/function_step.cc index 37763bc9e..0cbf11bc7 100644 --- a/eval/eval/function_step.cc +++ b/eval/eval/function_step.cc @@ -192,7 +192,6 @@ Value NoOverloadResult(absl::string_view name, // If no errors or unknowns in input args, create new CelError for missing // overload. - std::string signature; if (receiver_style) { if (args.empty()) { // Should not be possible, but return a sensible error in case of logic