Force compilation with -w @A-4 (all warnings but warning number 4
[tatoo.git] / myocamlbuild.ml
index 41730a6..d198faa 100644 (file)
@@ -28,6 +28,7 @@ let () = dispatch begin
   function
     | Before_rules ->
         set_flags [["ocaml";"compile"]; ["ocaml";"ocamldep"] ] macro_flags;
+        pflag [ "ocaml"; "compile" ] "warning"   (fun s -> (S[ A"-w"; A s]));
         flag [ "ocaml"; "compile"; "debug" ] (S[ A"-g"; A"-ppopt"; A"-DDEBUG"]);
         flag [ "ocaml"; "link"; "debug" ] (A"-g");
         flag [ "ocaml"; "compile"; "profile"] (S[A"-ppopt"; A"-DPROFILE"]);