Skip to content

Commit

Permalink
fix check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 12, 2023
1 parent 2140790 commit 09fa166
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmake/check_interfaces.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ end
function _check_module_csnippet(target, module, includes, name, snippet)
local checkname = module .. "_" .. name
local ok = false
if target:check_csnippets({[checkname] = snippet}, {includes = includes}) then
if target:check_csnippets({[checkname] = snippet}, {includes = includes, configs = {cflags = "-Wno-error=unused-variable"}}) then
target:set("configvar", ("TB_CONFIG_%s_HAVE_%s"):format(module:upper(), name:upper()), 1)
ok = true
end
Expand All @@ -60,7 +60,7 @@ end
function _check_keyword_csnippet(target, name, varname, snippet, configs)
local checkname = name
local ok = false
if target:check_csnippets({[checkname] = snippet}, {configs = configs}) then
if target:check_csnippets({[checkname] = snippet}, {configs = table.join({cflags = "-Wno-error=unused-variable"}, configs)}) then
target:set("configvar", varname, 1)
ok = true
end
Expand Down

0 comments on commit 09fa166

Please sign in to comment.