configure: Use longer, non-deprecated form for OCaml warnings flags
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 5 Oct 2021 11:04:06 +0000 (12:04 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 5 Oct 2021 11:04:06 +0000 (12:04 +0100)
In OCaml 4.13:

Alert ocaml_deprecated_cli: Setting a warning with a sequence of lowercase or uppercase letters,
like 'CDEFLMPSUVYZX', is deprecated.
Use the equivalent signed form: +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3.

configure.ac

index 10d0535..ef0c7a1 100644 (file)
@@ -64,7 +64,7 @@ AC_CHECK_PROG([POD2TEXT], [pod2text], [pod2text], [
 ])
 
 dnl Substitute OCaml flags and packages.
-AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error CDEFLMPSUVYZX+52-3"])
+AC_SUBST([OCAMLFLAGS], ["-g -safe-string -warn-error +C+D+E+F+L+M+P+S+U+V+Y+Z+X+52-3"])
 AC_SUBST([OCAMLPACKAGES], ["-package str,unix,threads -thread"])
 
 dnl Produce output files.