diff --git a/cmd/tools/vreduce.v b/cmd/tools/vreduce.v index b63cec0f91..8aa9c4fcf1 100644 --- a/cmd/tools/vreduce.v +++ b/cmd/tools/vreduce.v @@ -353,5 +353,7 @@ fn show_code_stats(code string, params ShowParams) { } fn warn_on_false(res bool, what string, loc string) { - log.warn('${what} is false, at ${loc}') + if !res { + log.warn('${what} is false, at ${loc}') + } }