test: fix some type warnings (#37483)

This commit is contained in:
zeertzjq
2026-01-21 15:11:47 +08:00
committed by GitHub
parent c556972ae1
commit 1883fe39bd
8 changed files with 19 additions and 15 deletions

View File

@@ -163,8 +163,7 @@ end
--- @param hdr string
--- @return string[]?
function Gcc:dependencies(hdr)
--- @type string
local cmd = argss_to_cmd(self.path, { '-M', hdr }) .. ' 2>&1'
local cmd = table.concat(argss_to_cmd(self.path, { '-M', hdr }), ' ') .. ' 2>&1'
local out = assert(io.popen(cmd))
local deps = out:read('*a')
out:close()