diff options
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r-- | scripts/genie.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 6655832ac59..eb6beb565e9 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -1091,6 +1091,12 @@ end "-Wno-unknown-warning-option", "-Wno-unused-value", } + 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 + "-Wno-error=ignored-attributes", + "-Wno-error=unused-const-variable", + } + end 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 |