learn-ocaml
learn-ocaml copied to clipboard
Selectively enable OCaml warnings
trafficstars
It would be nice if we could selectively enable certain OCaml warnings (e.g., the unused-value warning) when compiling our code (solution/prelude/prepare/test).
Doesn't the [@@@warning "-32"] attribute work for this purpose ?
Good suggestion (thanks!) but no, the attribute appears to be ignored.
(I have placed [@@@ocaml.warning "+A"] at the very beginning of test.ml.)
I don't know why -- perhaps because this is OCaml 4.05?