diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-12-18 10:19:27 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-12-18 10:19:27 +0000 |
commit | e2524f69d3a98ba6d1800bb0e1205c216dcd81e5 (patch) | |
tree | 9e72335a9d3e5a0b049d7cfec1c6ed3c59fe7346 | |
parent | 1380de10d149e919b37fd2d31fff48e7236a9072 (diff) | |
download | perl-MDK-Common-e2524f69d3a98ba6d1800bb0e1205c216dcd81e5.tar perl-MDK-Common-e2524f69d3a98ba6d1800bb0e1205c216dcd81e5.tar.gz perl-MDK-Common-e2524f69d3a98ba6d1800bb0e1205c216dcd81e5.tar.bz2 perl-MDK-Common-e2524f69d3a98ba6d1800bb0e1205c216dcd81e5.tar.xz perl-MDK-Common-e2524f69d3a98ba6d1800bb0e1205c216dcd81e5.zip |
check unused file-global my variables
-rw-r--r-- | perl_checker.src/global_checks.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl_checker.src/global_checks.ml b/perl_checker.src/global_checks.ml index 7dc50a9..0b57966 100644 --- a/perl_checker.src/global_checks.ml +++ b/perl_checker.src/global_checks.ml @@ -436,7 +436,8 @@ let check_variables vars t = let check_tree state package = let vars = { my_vars = [[]]; our_vars = []; locally_imported = []; required_vars = []; current_package = package; state = state; is_toplevel = true } in if !Flags.verbose then print_endline_flush_always ("checking package " ^ package.package_name) ; - let _vars = check_variables vars package.body in + let vars = check_variables vars package.body in + check_unused_local_variables vars ; () let imported_add i1 i2 = if i1 = None && i2 = None then None else Some (some_or i1 [] @ some_or i2 []) |