From 7a9a82879ba0790839d8c02fd7e2b9693d24d923 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 15 Jan 2023 22:38:31 +0100 Subject: [PATCH] checker: use a notice for now --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 2924ed683a..b83d121259 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -3818,7 +3818,7 @@ fn (mut c Checker) index_expr(mut node ast.IndexExpr) ast.Type { if !c.inside_unsafe && !c.is_builtin_mod && typ_sym.kind == .map && node.or_expr.stmts.len == 0 { elem_type := c.table.value_type(typ) if elem_type.is_real_pointer() { - c.warn('accessing a pointer map value requires an `or{}` block outside `unsafe`', + c.note('accessing a pointer map value requires an `or{}` block outside `unsafe`', node.pos) } }