From 79920e874f1fa4191cd758fd6597d582fa52c447 Mon Sep 17 00:00:00 2001
From: Tom Smeding <tom@tomsmeding.com>
Date: Sun, 30 Mar 2025 11:17:05 +0200
Subject: Compile: Generate slightly less redundant C code

---
 src/Compile/Exec.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/Compile')

diff --git a/src/Compile/Exec.hs b/src/Compile/Exec.hs
index 9b29486..5f90ea2 100644
--- a/src/Compile/Exec.hs
+++ b/src/Compile/Exec.hs
@@ -40,7 +40,8 @@ buildKernel csource funnames = do
              ,"-std=c99", "-x", "c"
              ,"-o", outso, "-"
              ,"-Wall", "-Wextra"
-             ,"-Wno-unused-variable", "-Wno-unused-parameter", "-Wno-unused-function"]
+             ,"-Wno-unused-variable", "-Wno-unused-but-set-variable"
+             ,"-Wno-unused-parameter", "-Wno-unused-function"]
   (ec, gccStdout, gccStderr) <- readProcessWithExitCode "gcc" args csource
 
   -- Print the source before the GCC output.
-- 
cgit v1.2.3-70-g09d2