0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.2411: function argument copied unnecessarily

Problem:    Function argument copied unnecessarily.
Solution:   Use the argument directly.
This commit is contained in:
Bram Moolenaar 2019-12-08 17:08:29 +01:00
parent 32b364fcc0
commit 1b03a193b3
2 changed files with 3 additions and 2 deletions

View File

@ -3412,13 +3412,12 @@ addr_error(cmd_addr_T addr_type)
get_address( get_address(
exarg_T *eap UNUSED, exarg_T *eap UNUSED,
char_u **ptr, char_u **ptr,
cmd_addr_T addr_type_arg, cmd_addr_T addr_type,
int skip, // only skip the address, don't use it int skip, // only skip the address, don't use it
int silent, // no errors or side effects int silent, // no errors or side effects
int to_other_file, // flag: may jump to other file int to_other_file, // flag: may jump to other file
int address_count UNUSED) // 1 for first address, >1 after comma int address_count UNUSED) // 1 for first address, >1 after comma
{ {
cmd_addr_T addr_type = addr_type_arg;
int c; int c;
int i; int i;
long n; long n;

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2411,
/**/ /**/
2410, 2410,
/**/ /**/