aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2016-06-18 00:41:33 +0200
committerEmilio Jesus Gallego Arias2016-06-25 17:17:44 +0200
commitc9f9a159818c138af3b8d8a3a1023a66b88be207 (patch)
tree08f3a8ecb129753981150169e50cf5dd498623d0 /interp
parent9bff82239c2a6412a26ae3c5faab42a9c9d2ccb1 (diff)
[feedback] Add optional ?loc parameter to loggers.
This is a first step to relay location info in an uniform way, as needed by warnings and other mechanisms. The location info remains unused for now, but coqtop printing could take advantage of it if so wished.
Diffstat (limited to 'interp')
-rw-r--r--interp/syntax_def.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/interp/syntax_def.ml b/interp/syntax_def.ml
index 891b64fa11..9a1483b105 100644
--- a/interp/syntax_def.ml
+++ b/interp/syntax_def.ml
@@ -93,7 +93,7 @@ let is_verbose_compat () =
let verbose_compat kn def = function
| Some v when is_verbose_compat () && Flags.version_strictly_greater v ->
let act =
- if !verbose_compat_notations then Feedback.msg_warning else errorlabstrm ""
+ if !verbose_compat_notations then Feedback.msg_warning ?loc:None else errorlabstrm ""
in
let pp_def = match def with
| [], NRef r -> str " is " ++ pr_global_env Id.Set.empty r