aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/hashcons.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hashcons.ml')
-rw-r--r--lib/hashcons.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hashcons.ml b/lib/hashcons.ml
index 4eaacf914..0ee3ec627 100644
--- a/lib/hashcons.ml
+++ b/lib/hashcons.ml
@@ -130,7 +130,11 @@ module Hstring = Make(
type t = string
type u = unit
let hashcons () s =(* incr accesstr;*) s
+
+ [@@@ocaml.warning "-3"] (* [@@noalloc] since 4.03.0 GPR#240 *)
external eq : string -> string -> bool = "caml_string_equal" "noalloc"
+ [@@@ocaml.warning "+3"]
+
(** Copy from CString *)
let rec hash len s i accu =
if i = len then accu