aboutsummaryrefslogtreecommitdiff
path: root/src/Compile
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-11-03 23:09:47 +0100
committerTom Smeding <tom@tomsmeding.com>2025-11-03 23:10:23 +0100
commit2ca218d2e97e521bcc49dea8f4774737ba083ede (patch)
tree346130e647776fb841c43ed01df28d1681c42d3a /src/Compile
parent477b1b0481579519f26153c729daa6a041ed945d (diff)
Compile: Add -Wno-maybe-uninitialized
Diffstat (limited to 'src/Compile')
-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 bbccf1c..ad4180f 100644
--- a/src/Compile/Exec.hs
+++ b/src/Compile/Exec.hs
@@ -43,7 +43,8 @@ buildKernel csource funname = do
,"-Wall", "-Wextra"
,"-Wno-unused-variable", "-Wno-unused-but-set-variable"
,"-Wno-unused-parameter", "-Wno-unused-function"
- ,"-Wno-alloc-size-larger-than"] -- ideally we'd keep this, but gcc reports false positives
+ ,"-Wno-alloc-size-larger-than" -- ideally we'd keep this, but gcc reports false positives
+ ,"-Wno-maybe-uninitialized"] -- maximum1i goes out of range if its input is empty, yes, don't complain
(ec, gccStdout, gccStderr) <- readProcessWithExitCode "gcc" args csource
-- Print the source before the GCC output.