aboutsummaryrefslogtreecommitdiff
path: root/kernel/cbytegen.ml
diff options
context:
space:
mode:
authorMaxime Dénès2016-06-29 11:48:49 +0200
committerMaxime Dénès2016-06-29 11:48:49 +0200
commit58b6784fee71a16719bc4f268dc42830c06a5c63 (patch)
treea9a3859746d2ff97f8c0b8106c96b49f9122a1b7 /kernel/cbytegen.ml
parent0e07e69dae3f3f4a99f824533f54a3991aacac6a (diff)
parentdd8d2a1d017d20635f943af205dcb0127a992a59 (diff)
Merge branch 'warnings' into trunk
Was PR#213: New warnings machinery
Diffstat (limited to 'kernel/cbytegen.ml')
-rw-r--r--kernel/cbytegen.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cbytegen.ml b/kernel/cbytegen.ml
index a0ef5e570e..8cbc3ab445 100644
--- a/kernel/cbytegen.ml
+++ b/kernel/cbytegen.ml
@@ -907,7 +907,8 @@ let compile fail_on_error ?universes:(universes=0) env c =
Feedback.msg_debug (dump_bytecodes init_code !fun_code fv)) ;
Some (init_code,!fun_code, Array.of_list fv)
with TooLargeInductive tname ->
- let fn = if fail_on_error then Errors.errorlabstrm "compile" else Feedback.msg_warning ?loc:None in
+ let fn = if fail_on_error then Errors.errorlabstrm "compile" else
+ (fun x -> Feedback.msg_warning x) in
(Pp.(fn
(str "Cannot compile code for virtual machine as it uses inductive " ++
Id.print tname ++ str str_max_constructors));