Skip to content

Commit

Permalink
patch 8.1.0217: compiler warning for variable set but not used
Browse files Browse the repository at this point in the history
Problem:    Compiler warning for variable set but not used.
Solution:   Move tilde_file inside #ifdef. (Hirohito Higashi, closes #3255)
  • Loading branch information
brammool committed Jul 28, 2018
1 parent 8e85db0 commit fd24946
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ex_docmd.c
Expand Up @@ -10654,9 +10654,9 @@ eval_vars(
int resultlen;
buf_T *buf;
int valid = VALID_HEAD + VALID_PATH; /* assume valid result */
int tilde_file = FALSE;
int spec_idx;
#ifdef FEAT_MODIFY_FNAME
int tilde_file = FALSE;
int skip_mod = FALSE;
#endif
char_u strbuf[30];
Expand Down Expand Up @@ -10723,7 +10723,9 @@ eval_vars(
else
{
result = curbuf->b_fname;
#ifdef FEAT_MODIFY_FNAME
tilde_file = STRCMP(result, "~") == 0;
#endif
}
break;

Expand Down Expand Up @@ -10790,7 +10792,9 @@ eval_vars(
else
{
result = buf->b_fname;
#ifdef FEAT_MODIFY_FNAME
tilde_file = STRCMP(result, "~") == 0;
#endif
}
}
break;
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -798,6 +798,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
217,
/**/
216,
/**/
Expand Down

0 comments on commit fd24946

Please sign in to comment.