facebookarchive / pfff

Tools for code analysis, visualizations, or style-preserving source transformation.
http://github.com/facebook/pfff/wiki/Main
Other
2.44k stars 204 forks source link

warnings-as-errors trigger on OCaml 4.02.0 #94

Closed avsm closed 9 years ago

avsm commented 10 years ago

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
yan12125 commented 9 years ago

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