summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-08 17:08:29 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-08 17:08:29 +0100
commit1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2 (patch)
tree09dc0b2fbb10c2ecf3219b1b607815ce2f495afe
parent32b364fcc09749f35adb441b81291e1e5946dbc2 (diff)
patch 8.1.2411: function argument copied unnecessarilyv8.1.2411
Problem: Function argument copied unnecessarily. Solution: Use the argument directly.
-rw-r--r--src/ex_docmd.c3
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index b5ce9df4bd..fb07450f80 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -3412,13 +3412,12 @@ addr_error(cmd_addr_T addr_type)
get_address(
exarg_T *eap UNUSED,
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 silent, // no errors or side effects
int to_other_file, // flag: may jump to other file
int address_count UNUSED) // 1 for first address, >1 after comma
{
- cmd_addr_T addr_type = addr_type_arg;
int c;
int i;
long n;
diff --git a/src/version.c b/src/version.c
index 46468e72a8..d4a677c797 100644
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2411,
+/**/
2410,
/**/
2409,