summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2026-05-14 03:15:16 +1000
committer Vas Crabb <vas@vastheman.com>2026-05-14 03:15:16 +1000
commitc70ed529c2d98fd838794874bdc97c805681ed63 (patch)
treec73d954915a186eb9e720746a634d448780bdc6a /scripts/genie.lua
parentb66dcb71a2a699526f2ffd9261c20d9ab4876fc4 (diff)
Turn off the sfinae-incomplete warning for GCC 16.
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua19
1 files changed, 8 insertions, 11 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 67069c1dc97..09b2ea73dba 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -1020,12 +1020,8 @@ end
"-Wno-unknown-warning-option",
"-Wno-unused-value",
"-Wno-unused-const-variable",
+ "-Wno-xor-used-as-pow", -- clang 10.0 complains that expressions like 10 ^ 7 look like exponention
}
- if ((version >= 100000) and (_OPTIONS["targetos"] ~= 'macosx')) or (version >= 120000) then
- buildoptions {
- "-Wno-xor-used-as-pow", -- clang 10.0 complains that expressions like 10 ^ 7 look like exponention
- }
- end
if version >= 140000 then
buildoptions {
"-Wno-bitwise-instead-of-logical", -- clang 14.0 complains about &, | on bools in asmjit
@@ -1049,13 +1045,9 @@ end
"-Wno-error=attributes", -- GCC fails to recognize some uses of [[maybe_unused]]
"-Wno-error=stringop-truncation", -- ImGui again
"-Wno-stringop-overflow", -- generates false positives when assigning an int rvalue to a u8 variable without an explicit cast
+ "-Wno-stringop-overread", -- machine/bbc.cpp in GCC 11.1
+ "-Wno-nonnull", -- luaengine.cpp lambdas do not need "this" captured but GCC 11.1 erroneously insists
}
- if version >= 110000 then
- buildoptions {
- "-Wno-nonnull", -- luaengine.cpp lambdas do not need "this" captured but GCC 11.1 erroneously insists
- "-Wno-stringop-overread", -- machine/bbc.cpp in GCC 11.1
- }
- end
if version >= 120000 then
buildoptions {
"-Wno-error=maybe-uninitialized",
@@ -1067,6 +1059,11 @@ end
"-Wno-xor-used-as-pow",
}
end
+ if version >= 160000 then
+ buildoptions_cpp {
+ "-Wno-sfinae-incomplete",
+ }
+ end
end
end