ocaml / flexdll

a dlopen-like API for Windows
Other
97 stars 30 forks source link

Add and fix C compiler warnings #129

Closed MisterDA closed 4 days ago

MisterDA commented 5 months ago

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):

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.