diff options
author | Gaëtan Gilbert <gaetan.gilbert@ens-lyon.fr> | 2017-05-28 13:34:42 +0200 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@ens-lyon.fr> | 2017-05-28 20:00:47 +0200 |
commit | b30a6b141fed01a62330051bfb92c19564c93215 (patch) | |
tree | ec73a2a0daf06891572f8117dc42978f1b2e7396 /configure.ml | |
parent | c53bc951c39b9d4ebcee0128c452fce7c8e4f92f (diff) |
Fail on deprecated warning even for Ocaml > 4.02.3
Deprecations which can't be fixed in 4.02.3 are locally wrapped with
[@@@ocaml.warning "-3"]. The only ones encountered are
- capitalize to capitalize_ascii and variants. Changing to ascii would
break coqdoc -latin1 and maybe other things though.
- external "noalloc" to external [@@noalloc]
Diffstat (limited to 'configure.ml')
-rw-r--r-- | configure.ml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ml b/configure.ml index cfb226a8b..a2aabb49c 100644 --- a/configure.ml +++ b/configure.ml @@ -515,7 +515,6 @@ let camltag = match caml_version_list with | _ -> assert false (** Explanation of disabled warnings: - 3: deprecated warning (not error for non minimum supported ocaml) 4: fragile pattern matching: too common in the code and too annoying to avoid in general 9: missing fields in a record pattern: too common in the code and not worth the bother 27: innocuous unused variable: innocuous @@ -533,7 +532,7 @@ let coq_warn_flags = if !Prefs.warn_error then "-warn-error +a" ^ (if caml_version_nums > [4;2;3] - then "-3-56" + then "-56" else "") else "" in |