ocaml / ocamlfind

The OCaml findlib library manager
Other
30 stars 30 forks source link

Fix warning 6 (labels-omitted) #71

Closed Leonidas-from-XIV closed 8 months ago

Leonidas-from-XIV commented 9 months ago

When compiling with a recent OCaml version (4.14.1 in this case) warning 6 is enabled which warns about function application without the label.

Example:

File "fl_package_base.ml", line 304, characters 22-40:
304 |    let pkg_ancestors = query_requirements predlist pkg in
                             ^^^^^^^^^^^^^^^^^^
Warning 6 [labels-omitted]: label preds was omitted in the application of this function.

This commit adds the labels (and renames anonymous arguments to allow labels to match names wherever convenient).