Commits

camlspotter committed c6e242d

compiler warning flag cleaning

  • Participants
  • Parent commits 4ea12f1

Comments (0)

Files changed (2)

json/tests/OMakefile

-CAMLFLAGS= -w A-24 -annot -bin-annot
+OCAMLWARNING_IGNORE += 24
+OCAMLWARNING_NON_ERROR += 24
 
 test.out: test.out.ml ../json.cmo ../json_conv.cma ../../lib/meta_conv.cmo ../../lib/meta_conv.cmi
-    $(OCAMLC) $(CAMLFLAGS) -g -I .. -I ../../lib ../../lib/meta_conv.cmo ../json_conv.cma test.out.ml -o $@
+    $(OCamlC) -I .. -I ../../lib ../../lib/meta_conv.cmo ../json_conv.cma test.out.ml -o $@
 
 .DEFAULT: test.out.ml test.out # test.out.auto.mli
 

ocaml/tests/OMakefile

-CAMLFLAGS= -w A-24
+OCAMLWARNING_IGNORE += 24
+OCAMLWARNING_NON_ERROR += 24
 
 %.out.ml: %.ml ../../pa/pa_meta_conv.cma 
     camlp4o -I $(OCAMLFIND_DESTDIR)/type_conv pa_type_conv.cma ../../pa/pa_meta_conv.cma  -printer Camlp4OCamlPrinter $< > $@
 %.out.mli: %.mli ../../pa/pa_meta_conv.cma 
     camlp4o -I $(OCAMLFIND_DESTDIR)/type_conv pa_type_conv.cma ../../pa/pa_meta_conv.cma  -printer Camlp4OCamlPrinter $< > $@
 
-OCAMLC=ocamlfind ocamlc -package compiler-libs.common
+OCAMLPACKS += compiler-libs.common
 
 test.out: test.out.ml ../ocaml.cmo ../../lib/meta_conv.cmo ../../lib/meta_conv.cmi ../ocaml_conv.cma 
-    $(OCAMLC) $(CAMLFLAGS) -g -I .. -I ../../lib ../../lib/meta_conv.cmo ocamlcommon.cma ../ocaml_conv.cma test.out.ml -o $@
+    $(OCamlC) -I .. -I ../../lib ../../lib/meta_conv.cmo ocamlcommon.cma ../ocaml_conv.cma test.out.ml -o $@
 
 %.out.auto.mli: %.out.ml ../ocaml.cmi ../ocaml_conv.cmi
-    $(OCAMLC) $(CAMLFLAGS) -c -i -I .. -I ../../lib  test.out.ml > $@
+    $(OCamlC) -c -i -I .. -I ../../lib  test.out.ml > $@
 
 .DEFAULT: test.out.ml test.out test.out.auto.mli