summaryrefslogtreecommitdiff
path: root/src/Compile/Exec.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-03-30 11:17:05 +0200
committerTom Smeding <tom@tomsmeding.com>2025-03-30 11:17:05 +0200
commit79920e874f1fa4191cd758fd6597d582fa52c447 (patch)
tree8efe52b10a1379d52c6e0841593404d4fb298d40 /src/Compile/Exec.hs
parentc06b4bd71a94601d467b509a26c08020d1fbd794 (diff)
Compile: Generate slightly less redundant C code
Diffstat (limited to 'src/Compile/Exec.hs')
-rw-r--r--src/Compile/Exec.hs3
1 files changed, 2 insertions, 1 deletions
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.