forked from aniani/vim
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)
This commit is contained in:
parent
8e85db0376
commit
fd249460fe
@ -10654,9 +10654,9 @@ eval_vars(
|
|||||||
int resultlen;
|
int resultlen;
|
||||||
buf_T *buf;
|
buf_T *buf;
|
||||||
int valid = VALID_HEAD + VALID_PATH; /* assume valid result */
|
int valid = VALID_HEAD + VALID_PATH; /* assume valid result */
|
||||||
int tilde_file = FALSE;
|
|
||||||
int spec_idx;
|
int spec_idx;
|
||||||
#ifdef FEAT_MODIFY_FNAME
|
#ifdef FEAT_MODIFY_FNAME
|
||||||
|
int tilde_file = FALSE;
|
||||||
int skip_mod = FALSE;
|
int skip_mod = FALSE;
|
||||||
#endif
|
#endif
|
||||||
char_u strbuf[30];
|
char_u strbuf[30];
|
||||||
@ -10723,7 +10723,9 @@ eval_vars(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
result = curbuf->b_fname;
|
result = curbuf->b_fname;
|
||||||
|
#ifdef FEAT_MODIFY_FNAME
|
||||||
tilde_file = STRCMP(result, "~") == 0;
|
tilde_file = STRCMP(result, "~") == 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -10790,7 +10792,9 @@ eval_vars(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
result = buf->b_fname;
|
result = buf->b_fname;
|
||||||
|
#ifdef FEAT_MODIFY_FNAME
|
||||||
tilde_file = STRCMP(result, "~") == 0;
|
tilde_file = STRCMP(result, "~") == 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -798,6 +798,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
217,
|
||||||
/**/
|
/**/
|
||||||
216,
|
216,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user