Skip to content

Commit

Permalink
chore: disable unused-but-set-variable for clang (#1441)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
scolsen committed Nov 1, 2022
1 parent ce0601a commit 3920834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ defaultProject =
"-Wall",
"-Werror",
"-Wno-unused-variable",
"-Wno-unused-but-set-variable",
"-Wno-self-assign"
],
projectLibFlags = case platform of
Expand Down

0 comments on commit 3920834

Please sign in to comment.