fix compile on clang 3.7 (nw)

This commit is contained in:
Miodrag Milanovic 2015-12-03 13:18:20 +01:00
parent 366ee9b4b1
commit 1af304131e

View File

@ -296,6 +296,16 @@ project "7z"
uuid "ad573d62-e76a-4b11-ae34-5110a6789a42"
kind "StaticLib"
local version = str_to_version(_OPTIONS["gcc_version"])
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "clang") then
configuration { "gmake" }
if (version >= 30700) then
buildoptions {
"-Wno-shift-negative-value",
}
end
end
configuration { "vs*" }
buildoptions {
"/wd4100", -- warning C4100: 'xxx' : unreferenced formal parameter