summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author couriersud <couriersud@users.noreply.github.com>2022-05-03 20:44:44 +0200
committer GitHub <noreply@github.com>2022-05-04 04:44:44 +1000
commita8fe401275a2d1030193abdfc413fcc019bbe742 (patch)
treee3890cda2f1704503dcf76518d6a77140591a929 /scripts
parent2bda7791f552b3f270325c4ce9c4fef2f0e71342 (diff)
Suppress compile warnings in asmjit with GCC 7. (#9675)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/3rdparty.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 0c6c03663f6..59c3f1b720b 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -2234,6 +2234,13 @@ project "asmjit"
uuid "4539757c-6e99-4bae-b3d0-b342a7c49539"
kind "StaticLib"
+ configuration { "gmake or ninja" }
+ if (_OPTIONS["gcc"] ~= nil) and (not string.find(_OPTIONS["gcc"], "clang")) and (str_to_version(_OPTIONS["gcc_version"]) < 80000) then
+ buildoptions {
+ "-Wno-maybe-uninitialized",
+ }
+ end
+
configuration { }
if _OPTIONS["targetos"]=="macosx" and _OPTIONS["gcc"]~=nil then