mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: run vfmt over vlib/v/gen/c/fn.v
This commit is contained in:
parent
40fff7b56a
commit
8f160ee3ed
@ -28,7 +28,7 @@ fn (mut g Gen) gen_fn_decl(node ast.FnDecl, skip bool) {
|
||||
}
|
||||
*/
|
||||
if g.pref.skip_unused {
|
||||
is_used_by_main := g.table.used_fns[ node.name ]
|
||||
is_used_by_main := g.table.used_fns[node.name]
|
||||
// println('> is_used_by_main: $is_used_by_main | node.name: $node.name')
|
||||
if !is_used_by_main {
|
||||
g.writeln('// fn $node.name UNUSED')
|
||||
|
Loading…
Reference in New Issue
Block a user