mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 05:05:00 -07:00
api: remove unnecessary initializations causing warnings in api dispatch (#5337)
Left over change from acb7c82
(fix leak when a api function is
incorrectly called with a list.). These initializations are now never
used and causes warnings in static analysis
This commit is contained in:
parent
172d099c32
commit
5f42184873
@ -218,7 +218,7 @@ for i = 1, #functions do
|
||||
for j = 1, #fn.parameters do
|
||||
local param = fn.parameters[j]
|
||||
local converted = 'arg_'..j
|
||||
output:write('\n '..param[1]..' '..converted..' api_init_'..string.lower(real_type(param[1]))..';')
|
||||
output:write('\n '..param[1]..' '..converted..';')
|
||||
end
|
||||
output:write('\n')
|
||||
output:write('\n if (args.size != '..#fn.parameters..') {')
|
||||
|
Loading…
Reference in New Issue
Block a user