aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-09-02 14:04:18 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-09-02 14:04:18 +0200
commitf60d849a9601febc35a35204d2442e72673e3fb4 (patch)
tree1069fe749f3c0c3474dce8d82f5d1272d54a9bd2
parent675d7c4310e10d68e876331a95c46b726494ed91 (diff)
Silence the CAMLP5 warnings on command line.
They were mostly useless, and people complained about it. Not that because there is no API to make CAMLP4 silent, a CAMLP4-based Coq will still spit out its share of noisy warnings.
-rw-r--r--parsing/pcoq.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsing/pcoq.ml b/parsing/pcoq.ml
index 0e74e6f0c..714e25f85 100644
--- a/parsing/pcoq.ml
+++ b/parsing/pcoq.ml
@@ -132,13 +132,13 @@ let grammar_delete e reinit (pos,rls) =
let grammar_extend e reinit ext =
let ext = of_coq_extend_statement ext in
let undo () = grammar_delete e reinit ext in
- let redo () = camlp4_verbose (maybe_uncurry (G.extend e)) ext in
+ let redo () = camlp4_verbosity false (maybe_uncurry (G.extend e)) ext in
camlp4_state := ByEXTEND (undo, redo) :: !camlp4_state;
redo ()
let grammar_extend_sync e reinit ext =
camlp4_state := ByGrammar (ExtendRule (e, reinit, ext)) :: !camlp4_state;
- camlp4_verbose (maybe_uncurry (G.extend e)) (of_coq_extend_statement ext)
+ camlp4_verbosity false (maybe_uncurry (G.extend e)) (of_coq_extend_statement ext)
(** The apparent parser of Coq; encapsulate G to keep track
of the extensions. *)