diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-03-31 14:23:09 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-03-31 14:23:09 +0000 |
commit | c20fa0a8ad2c4698b1f966b99581abb1719898c1 (patch) | |
tree | f272faee3e92eb0a5e9484a41ff74ce3bd90365f | |
parent | 492dd716bdbd866fc28eacfe5082910dfa9e7590 (diff) | |
download | perl_checker-c20fa0a8ad2c4698b1f966b99581abb1719898c1.tar perl_checker-c20fa0a8ad2c4698b1f966b99581abb1719898c1.tar.gz perl_checker-c20fa0a8ad2c4698b1f966b99581abb1719898c1.tar.bz2 perl_checker-c20fa0a8ad2c4698b1f966b99581abb1719898c1.tar.xz perl_checker-c20fa0a8ad2c4698b1f966b99581abb1719898c1.zip |
fix warning (would also need fixing detecting of boolean context vs scalar
context)
-rw-r--r-- | perl_checker.src/parser_helper.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index a60cb79..0bba0d9 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -1086,7 +1086,7 @@ let mcontext_check wanted_mcontext esp = | M_list | M_array | M_mixed [M_array; M_none] | M_tuple _ -> () | _ -> match un_parenthesize_full esp.any.expr with - | Call(Deref(I_func, Ident(None, "grep", _)), _) -> warn_rule "in scalar context, use \"any\" instead of \"grep\"" + | Call(Deref(I_func, Ident(None, "grep", _)), _) -> warn_rule "in boolean context, use \"any\" instead of \"grep\"" | _ -> ()); mcontext_check_raw wanted_mcontext esp (fun () -> ()) (fun () -> ()) (fun () -> ()) |