Closed patricoferris closed 1 year ago
Note: @haesbaert has some ideas on how to improve warnings from C https://github.com/ocaml-multicore/eio/pull/448#discussion_r1128142119
Adding a dune-workspace
file with the following seems to do the trick:
(lang dune 3.7)
(env (_ (c_flags :standard -Wall -Werror)))
I think the stubs were previously incorrect as the
==
had higher precedence than the&
so it was always returningfalse
, I double checked with a small program:Which printed
false false
. You can see the apple C compiler complaining about it here: https://github.com/ocaml-multicore/eio/actions/runs/4870762082/jobs/8686910729.Afaict old programs using
eio_posix
shouldn't actually be impacted in terms of correctness as this was more of an optimisation to see if we need to wait for an FD to be readable/writeable.