diff options
| author | Emilio Jesus Gallego Arias | 2019-07-31 12:30:20 +0200 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-09-19 13:30:05 +0200 |
| commit | 8562093a2337643164670d59d397771b1c881e5b (patch) | |
| tree | 8940d693f47673166d11ca95d8b47f0bb5cf4cdf /kernel/nativevalues.ml | |
| parent | c5ecc185ccb804e02ef78012fc6ae38c092cc80a (diff) | |
[ocaml] Allow building with deprecated Obj primitives.
We allow the build to use some deprecated primitives in OCaml
4.09.0, for more details see bug #10602
Diffstat (limited to 'kernel/nativevalues.ml')
| -rw-r--r-- | kernel/nativevalues.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/nativevalues.ml b/kernel/nativevalues.ml index e54118c775..f788832d5b 100644 --- a/kernel/nativevalues.ml +++ b/kernel/nativevalues.ml @@ -96,14 +96,14 @@ let mk_accu (a : atom) : t = else let data = { data with acc_arg = x :: data.acc_arg } in let ans = Obj.repr (accumulate data) in - let () = Obj.set_tag ans accumulate_tag in + let () = Obj.set_tag ans accumulate_tag [@ocaml.alert "--deprecated"] in ans in let acc = { acc_atm = a; acc_arg = [] } in let ans = Obj.repr (accumulate acc) in (** FIXME: use another representation for accumulators, this causes naked pointers. *) - let () = Obj.set_tag ans accumulate_tag in + let () = Obj.set_tag ans accumulate_tag [@ocaml.alert "--deprecated"] in (Obj.obj ans : t) let get_accu (k : accumulator) = |
