From a29c80ca3dc8cd513c0b0dd6741f9ac7615e2f15 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 21 Oct 2019 18:53:55 +0300 Subject: [PATCH] make the unsafe error a warning for now --- vlib/compiler/fn.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/fn.v b/vlib/compiler/fn.v index 81290477aa..b3d374b512 100644 --- a/vlib/compiler/fn.v +++ b/vlib/compiler/fn.v @@ -644,7 +644,7 @@ fn (p mut Parser) async_fn_call(f Fn, method_ph int, receiver_var, receiver_type // p.tok == fn_name fn (p mut Parser) fn_call(f mut Fn, method_ph int, receiver_var, receiver_type string) { if f.is_unsafe && !p.builtin_mod && !p.inside_unsafe { - p.error('you are calling an unsafe function outside of an unsafe block') + p.warn('you are calling an unsafe function outside of an unsafe block') } if f.is_deprecated { p.warn('$f.name is deprecated')