]> granicus.if.org Git - vim/commitdiff
patch 8.1.2411: function argument copied unnecessarily v8.1.2411
authorBram Moolenaar <Bram@vim.org>
Sun, 8 Dec 2019 16:08:29 +0000 (17:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 8 Dec 2019 16:08:29 +0000 (17:08 +0100)
Problem:    Function argument copied unnecessarily.
Solution:   Use the argument directly.

src/ex_docmd.c
src/version.c

index b5ce9df4bd2ed0a438ab1ea4d66dcace42e9d0ac..fb07450f80907559a12823cbfa152744a0eebec0 100644 (file)
@@ -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;
index 46468e72a8ca0965e16dace58771727885d59999..d4a677c797a155517af5c1e5feb3756b7ae8efc9 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2411,
 /**/
     2410,
 /**/