diff options
| author | Emilio Jesus Gallego Arias | 2020-04-12 17:31:45 -0400 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-04-12 17:31:45 -0400 |
| commit | 0d7fdb0ce2ccfcc14f465cbc57c62922d2347745 (patch) | |
| tree | b7a33935beb5369b36e7d28ed061032f15e79145 | |
| parent | 227520b14e978e19d58368de873521a283aecedd (diff) | |
[warnings] Be silent about the `set_tag` warning.
This is a critical warning in terms of future compatibility but it
makes no sense to be verbose about it every build.
| -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 6cfe44c5ff..a5fcfae1fc 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 [@ocaml.alert "--deprecated"] in + let () = Obj.set_tag ans accumulate_tag [@ocaml.warning "-3"] 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 [@ocaml.alert "--deprecated"] in + let () = Obj.set_tag ans accumulate_tag [@ocaml.warning "-3"] in (Obj.obj ans : t) let get_accu (k : accumulator) = |
