diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index ed3fdea7c1..a9aa4e578d 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -3421,8 +3421,10 @@ fn (mut c Checker) stmt(node ast.Stmt) { // c.expected_type = ast.void_type match mut node { ast.EmptyStmt { - print_backtrace() - eprintln('Checker.stmt() EmptyStmt') + if c.pref.is_verbose { + eprintln('Checker.stmt() EmptyStmt') + print_backtrace() + } } ast.NodeError {} ast.AsmStmt { @@ -4023,7 +4025,6 @@ pub fn (mut c Checker) expr(node ast.Expr) ast.Type { match mut node { ast.NodeError {} ast.EmptyExpr { - print_backtrace() c.error('checker.expr(): unhandled EmptyExpr', token.Position{}) } ast.CTempVar {