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:
Björn Linse 2016-09-14 13:10:04 +02:00 committed by Florian Walch
parent 172d099c32
commit 5f42184873

View File

@ -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..') {')