aboutsummaryrefslogtreecommitdiff
path: root/lib/pp.ml
diff options
context:
space:
mode:
authorppedrot2013-05-08 19:55:23 +0000
committerppedrot2013-05-08 19:55:23 +0000
commitd63320ceb1c56710f5e953742dd5d6cf43aacbdf (patch)
tree9a6eec0f6e330270aab09af8ae9c744282dc8a82 /lib/pp.ml
parentc9467e5684f9a71cb82ddc72b5b9d501b32b5c5e (diff)
Uniformizing the [if_warn] flag used for warning printing and put
it into the standard logger instead. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16491 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/pp.ml')
-rw-r--r--lib/pp.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.ml b/lib/pp.ml
index c346943e15..4d2c866d10 100644
--- a/lib/pp.ml
+++ b/lib/pp.ml
@@ -341,7 +341,7 @@ let std_logger level msg = match level with
| Debug _ -> msgnl (debugbody msg) (* cyan *)
| Info -> msgnl (print_color "37" (hov 0 msg)) (* gray *)
| Notice -> msgnl msg
-| Warning -> msgnl_with !err_ft (warnbody msg) (* bright yellow *)
+| Warning -> Flags.if_warn (msgnl_with !err_ft) (warnbody msg) (* bright yellow *)
| Error -> msgnl_with !err_ft (errorbody msg) (* bright red *)
let logger = ref std_logger