From ad1c1b5ca5427991db7dadf3f221715df044b583 Mon Sep 17 00:00:00 2001 From: Alexander Bandukwala <7h3kk1d@gmail.com> Date: Thu, 3 Oct 2024 10:53:18 -0400 Subject: [PATCH 1/2] Readd warnings failing build in dev but exclude some unused warnings - The idea is to make development easier by allowing code to be built with unused warnings - We're still restrictive on some warnings because dune won't output all warnings on every build --- dune-workspace | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dune-workspace b/dune-workspace index 480ccb1514..6268c15bd9 100644 --- a/dune-workspace +++ b/dune-workspace @@ -1,9 +1,10 @@ (lang dune 3.16) +; List of warning codes found at https://ocaml.org/manual/5.2/comp.html#s:comp-options (env (dev (flags - (:standard -warn-error -A))) + (:standard -warn-error +A-26-27-32-33-34-35-38-39-58))) ; Disable some unused warnings. (release (flags (:standard -warn-error +A-58)))) From 3e79efcc211f80806518f1d387bce4c4e5b3e553 Mon Sep 17 00:00:00 2001 From: Alexander Bandukwala <7h3kk1d@gmail.com> Date: Thu, 3 Oct 2024 16:15:48 -0400 Subject: [PATCH 2/2] Simplify disabled warnings --- dune-workspace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune-workspace b/dune-workspace index 6268c15bd9..93d6e50904 100644 --- a/dune-workspace +++ b/dune-workspace @@ -4,7 +4,7 @@ (env (dev (flags - (:standard -warn-error +A-26-27-32-33-34-35-38-39-58))) ; Disable some unused warnings. + (:standard -warn-error +A-26-27-K-58))) ; Disable some unused warnings. (release (flags (:standard -warn-error +A-58))))