diff options
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index b68ae191860..833cb6e3712 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1088,6 +1088,7 @@ end "-Wno-unknown-attributes", "-Wno-unknown-warning-option", "-Wno-unused-value", + "-Wno-unused-const-variable", } if (version < 70000) or ((version < 100001) and (_OPTIONS["targetos"] == 'macosx')) then buildoptions { -- clang 6.0 complains that [[maybe_unused]] is ignored for static data members @@ -1132,6 +1133,14 @@ end "-Wno-return-local-addr", -- sqlite3.c in GCC 10 } end + 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 + "-Wno-misleading-indentation", -- sqlite3.c in GCC 11.1 + "-Wno-maybe-uninitialized" -- expat in GCC 11.1 + } + end end end @@ -1437,6 +1446,7 @@ if _OPTIONS["vs"]=="clangcl" then "-Wno-unused-local-typedef", "-Wno-unused-private-field", "-Wno-unused-variable", + "-Wno-xor-used-as-pow", "-Wno-microsoft-cast", } end |