mirror of
https://github.com/vlang/v.git
synced 2025-09-14 15:02:33 +03:00
compiler: unused module check always
This commit is contained in:
parent
69b498d85d
commit
422ba3a3ce
1 changed files with 3 additions and 3 deletions
|
@ -276,10 +276,10 @@ fn (p mut Parser) parse(pass Pass) {
|
|||
if p.is_script && !p.pref.is_test {
|
||||
p.set_current_fn( MainFn )
|
||||
p.check_unused_variables()
|
||||
}
|
||||
if !p.first_pass() && !p.pref.is_repl {
|
||||
p.check_unused_imports()
|
||||
}
|
||||
}
|
||||
if false && !p.first_pass() && p.fileis('main.v') {
|
||||
out := os.create('/var/tmp/fmt.v') or {
|
||||
cerror('failed to create fmt.v')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue