diff --git a/vlib/v/markused/markused.v b/vlib/v/markused/markused.v index abf8c79e04..fd252a5406 100644 --- a/vlib/v/markused/markused.v +++ b/vlib/v/markused/markused.v @@ -96,6 +96,7 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []ast.Fi '65557.set', '65557.set_unsafe', // TODO: process the _vinit const initializations automatically too + 'json__decode_string', 'os.getwd', 'os.init_os_args', 'os.init_os_args_wide', @@ -156,6 +157,11 @@ pub fn mark_used(mut table ast.Table, pref &pref.Preferences, ast_files []ast.Fi all_fn_root_names << k continue } + if mfn.name in ['+', '-', '*', '%', '/', '<', '=='] { + // TODO: mark the used operators in the checker + all_fn_root_names << k + continue + } } // handle assertions and testing framework callbacks: