facebookarchive/pfff

warnings-as-errors trigger on OCaml 4.02.0

Closed this issue · 1 comments

avsm commented

See https://travis-ci.org/ocaml/opam-repository/jobs/34622462 when building on OCaml 4.02.0 in OPAM bulk builds.

# Warning 3: deprecated: operator (or); you should use (||) instead
# File "src/flow.ml", line 53, characters 54-56:
# Warning 3: deprecated: operator (or); you should use (||) instead
# File "/home/travis/.opam/system/build/pfff.0.27.3/h_program-lang/database_code.ml", line 500, characters 7-61:
# Warning 48: implicit elimination of optional argument ?allow_nan
# File "/home/travis/.opam/system/build/pfff.0.27.3/h_program-lang/database_code.ml", line 1:
# Error: Some fatal warnings were triggered (1 occurrences)
# make[2]: *** [database_code.cmo] Error 2
# make[1]: *** [rec] Error 1
# make: *** [all] Error 2

In graph_code/graph_code_opti.ml, deprecated Array.create (line 69~71) also causes compilation failure due to similar reasons
OCaml version: 4.02.0