summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/3rdparty.lua
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2020-04-23 17:03:56 +0100
committer smf- <smf-@users.noreply.github.com>2020-04-23 17:04:29 +0100
commit822e05189678719821c9ec715f07f2424086a82d (patch)
tree51c92ecefd39aa1b7250516444f5b5315f34860a /scripts/src/3rdparty.lua
parent6ad90378a31f5aeb9aa18173a4433a72c01c1049 (diff)
fixes for clang 10.0.0 misleading indentation and xor used as a pow warnings (nw)
Diffstat (limited to 'scripts/src/3rdparty.lua')
-rw-r--r--scripts/src/3rdparty.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 1ea65fa45d7..455255725eb 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -745,6 +745,11 @@ end
"_7ZIP_ST",
}
+ if string.find(_OPTIONS["gcc"], "clang") and str_to_version(_OPTIONS["gcc_version"]) >= 100000 then
+ buildoptions_c {
+ "-Wno-misleading-indentation",
+ }
+ end
files {
MAME_DIR .. "3rdparty/lzma/C/7zAlloc.c",
MAME_DIR .. "3rdparty/lzma/C/7zArcIn.c",
@@ -1507,6 +1512,11 @@ project "portaudio"
}
end
end
+ if string.find(_OPTIONS["gcc"], "clang") and version >= 100000 then
+ buildoptions_c {
+ "-Wno-misleading-indentation",
+ }
+ end
end
configuration { "vs*" }
buildoptions {