aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/coqdoc/index.ml
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-05-30 08:10:42 +0200
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-05-30 08:10:42 +0200
commitba3ccf80a44f0e06ee6e622a30f99de6804d005e (patch)
treee070e15d3e6cb54ba97601d938711cad7df64299 /tools/coqdoc/index.ml
parent0336d4d19d446315cb922149b8ee4e7885843be0 (diff)
parentb30a6b141fed01a62330051bfb92c19564c93215 (diff)
Merge PR#692: Fail on deprecated warning even for Ocaml > 4.02.3
Diffstat (limited to 'tools/coqdoc/index.ml')
-rw-r--r--tools/coqdoc/index.ml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/coqdoc/index.ml b/tools/coqdoc/index.ml
index 34108eff4..4d118b978 100644
--- a/tools/coqdoc/index.ml
+++ b/tools/coqdoc/index.ml
@@ -155,10 +155,14 @@ let sort_entries el =
let display_letter c = if c = '*' then "other" else String.make 1 c
+[@@@ocaml.warning "-3"] (* String.lowercase_ascii since 4.03.0 GPR#124 *)
+let lowercase = String.lowercase
+[@@@ocaml.warning "+3"]
+
let type_name = function
| Library ->
let ln = !lib_name in
- if ln <> "" then String.lowercase ln else "library"
+ if ln <> "" then lowercase ln else "library"
| Module -> "module"
| Definition -> "definition"
| Inductive -> "inductive"