summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Olsen <scg.olsen@gmail.com>2022-11-01 09:31:20 -0400
committerGitHub <noreply@github.com>2022-11-01 14:31:20 +0100
commit39208349e89c366d39991f5aaffc19c5b595b13e (patch)
tree9ea2871f55f522e8e4cb60cfea009ae6bd333eb2
parentce0601ae6ed4d094cf67797fbab8c847a69dfa09 (diff)
chore: disable unused-but-set-variable for clang (#1441)
At some point (I believe version 13.0.0?) clang added a warning that catches variables that were assigned but unused. This version of clang (or later) is now bundled w/ github's macos images and is causing our tests to fail in continuous integration. We can currently generate C code that trips this warning, so for now I've disabled it as we do some other warnings related to variable usages.
-rw-r--r--app/Main.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 1838945a..e1647598 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -36,6 +36,7 @@ defaultProject =
"-Wall",
"-Werror",
"-Wno-unused-variable",
+ "-Wno-unused-but-set-variable",
"-Wno-self-assign"
],
projectLibFlags = case platform of