diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-09-14 13:10:04 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2016-09-14 13:10:04 +0200 |
commit | 5f42184873828f9a19ea5104b9b696c09849cab4 (patch) | |
tree | cdd47b0162e0fc1cab19fdbfb903693a92d0f708 /scripts/gendispatch.lua | |
parent | 172d099c32c4312022929752b1fe2a8f847708ee (diff) | |
download | rneovim-5f42184873828f9a19ea5104b9b696c09849cab4.tar.gz rneovim-5f42184873828f9a19ea5104b9b696c09849cab4.tar.bz2 rneovim-5f42184873828f9a19ea5104b9b696c09849cab4.zip |
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
Diffstat (limited to 'scripts/gendispatch.lua')
-rw-r--r-- | scripts/gendispatch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua index 12d6261b5a..96322ccf73 100644 --- a/scripts/gendispatch.lua +++ b/scripts/gendispatch.lua @@ -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..') {') |