summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-31 21:20:51 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-31 21:20:51 +0100
commit0b76ad53b30232093b96a74d5ce6f02395219456 (patch)
tree8d5b50168fd422c7cd53306966abdc0a12bf5036
parent705724e430abd10ffdd5f1a2bb5a8f9223ff5cdd (diff)
patch 8.2.0187: reduntant codev8.2.0187
Problem: Reduntant code. Solution: Remove unused assignments. (Dominique Pelle, closes #5557)
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c
index 839617a1c2..f4022c6d8a 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 */
/**/
+ 187,
+/**/
186,
/**/
185,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 69a2d1b142..fe836487ba 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1653,7 +1653,7 @@ compile_arguments(char_u **arg, cctx_T *cctx, int *argcount)
compile_call(char_u **arg, size_t varlen, cctx_T *cctx, int argcount_init)
{
char_u *name = *arg;
- char_u *p = *arg + varlen + 1;
+ char_u *p;
int argcount = argcount_init;
char_u namebuf[100];
ufunc_T *ufunc;
@@ -2058,7 +2058,6 @@ compile_get_env(char_u **arg, cctx_T *cctx)
int ret;
char_u *name;
- start = *arg;
++*arg;
len = get_env_len(arg);
if (len == 0)