From 4a24806c9e1c60bd649846722997af8a5a0d1088 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 26 May 2026 13:27:33 +0300 Subject: [PATCH] v2: silence unused-parameter warnings in `trace_scope_fixed_array_object` The trace function is intentionally a no-op stub for future debug instrumentation; `v -W -check build-tools` (Tools CI) treats the unused-parameter warnings as errors. Prefix the parameters with `_`. --- vlib/v2/types/scope.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v2/types/scope.v b/vlib/v2/types/scope.v index 95b6115c3..726573a2b 100644 --- a/vlib/v2/types/scope.v +++ b/vlib/v2/types/scope.v @@ -180,7 +180,7 @@ pub fn (mut s Scope) insert_or_update(name string, obj Object) { } } -fn trace_scope_fixed_array_object(label string, name string, obj Object) { +fn trace_scope_fixed_array_object(_label string, _name string, _obj Object) { } pub fn (mut s Scope) insert_type(name string, typ Type) { -- 2.39.5