I noticed that the CPPFLAGS and CFLAGS were not being passed when building Flexdll's C files, but they introduce problems when building OCaml 4.06 and 4.07 (explanation from David Allsopp):
The underlying OCaml compiler is msvc64, unless OCAML_PORT is set in AppVeyor matrix (so OCaml in the 4.06 and 4.07 tests is msvc64);
I've instead chosen to add -Wall to enable warnings when compiling C files. To make sure new problems are not introduced, the warnings are turned into errors if and only if the CI environment variable matches [Tt]rue.
I've then tentatively fixed the warnings raised by GCC and MSVC.
I noticed that the
CPPFLAGS
andCFLAGS
were not being passed when building Flexdll's C files, but they introduce problems when building OCaml 4.06 and 4.07 (explanation from David Allsopp):OCAML_PORT
is set in AppVeyor matrix (so OCaml in the 4.06 and 4.07 tests is msvc64);CFLAGS
andCPPFLAGS
in the OCaml's installed Makefile.config;$(ocamlopt -where)/Makefile.config
so ends up getting OCaml's msvc64CFLAGS
andCPPFLAGS
values;OC_CFLAGS
andOC_CPPFLAGS
which removes the problem.I've instead chosen to add
-Wall
to enable warnings when compiling C files. To make sure new problems are not introduced, the warnings are turned into errors if and only if theCI
environment variable matches[Tt]rue
.I've then tentatively fixed the warnings raised by GCC and MSVC.