From f749a3e33d759fddef63a69e54ff1336411d5e16 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Tue, 5 Mar 2013 01:34:11 +0100 Subject: [PATCH] Force compilation with -w @A-4 (all warnings but warning number 4 turned into errors. Warning 4 is 'Fragile pattern-matching'). --- _tags | 4 ++-- myocamlbuild.ml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_tags b/_tags index 571d289..40f25e4 100644 --- a/_tags +++ b/_tags @@ -24,7 +24,7 @@ true: inline(100), unsafe(true) : for-pack(Auto) : include - : include - +#Enable warning for all but generated files: +not : warning(@A-4) diff --git a/myocamlbuild.ml b/myocamlbuild.ml index 41730a6..d198faa 100644 --- a/myocamlbuild.ml +++ b/myocamlbuild.ml @@ -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"]); -- 2.17.1