Skip to content

Commit fd24946

Browse files
committed
patch 8.1.0217: compiler warning for variable set but not used
Problem: Compiler warning for variable set but not used. Solution: Move tilde_file inside #ifdef. (Hirohito Higashi, closes #3255)
1 parent 8e85db0 commit fd24946

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/ex_docmd.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10654,9 +10654,9 @@ eval_vars(
1065410654
int resultlen;
1065510655
buf_T *buf;
1065610656
int valid = VALID_HEAD + VALID_PATH; /* assume valid result */
10657-
int tilde_file = FALSE;
1065810657
int spec_idx;
1065910658
#ifdef FEAT_MODIFY_FNAME
10659+
int tilde_file = FALSE;
1066010660
int skip_mod = FALSE;
1066110661
#endif
1066210662
char_u strbuf[30];
@@ -10723,7 +10723,9 @@ eval_vars(
1072310723
else
1072410724
{
1072510725
result = curbuf->b_fname;
10726+
#ifdef FEAT_MODIFY_FNAME
1072610727
tilde_file = STRCMP(result, "~") == 0;
10728+
#endif
1072710729
}
1072810730
break;
1072910731

@@ -10790,7 +10792,9 @@ eval_vars(
1079010792
else
1079110793
{
1079210794
result = buf->b_fname;
10795+
#ifdef FEAT_MODIFY_FNAME
1079310796
tilde_file = STRCMP(result, "~") == 0;
10797+
#endif
1079410798
}
1079510799
}
1079610800
break;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ static char *(features[]) =
798798

799799
static int included_patches[] =
800800
{ /* Add new patch number below this line */
801+
/**/
802+
217,
801803
/**/
802804
216,
803805
/**/

0 commit comments

Comments
 (0)