1
0
forked from aniani/vim

patch 7.4.2206

Problem:    Warning for unused function.
Solution:   Put the function inside #ifdef. (John Marriott)
This commit is contained in:
Bram Moolenaar
2016-08-13 15:29:14 +02:00
parent e9d58a6459
commit 4ae209597c
2 changed files with 4 additions and 4 deletions

View File

@@ -4699,12 +4699,10 @@ f_getline(typval_T *argvars, typval_T *rettv)
get_buffer_lines(curbuf, lnum, end, retlist, rettv); get_buffer_lines(curbuf, lnum, end, retlist, rettv);
} }
static void get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv); #ifdef FEAT_QUICKFIX
static void static void
get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv) get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv)
{ {
#ifdef FEAT_QUICKFIX
if (what_arg->v_type == VAR_UNKNOWN) if (what_arg->v_type == VAR_UNKNOWN)
{ {
if (rettv_list_alloc(rettv) == OK) if (rettv_list_alloc(rettv) == OK)
@@ -4727,8 +4725,8 @@ get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv)
EMSG(_(e_dictreq)); EMSG(_(e_dictreq));
} }
} }
#endif
} }
#endif
/* /*
* "getloclist()" function * "getloclist()" function

View File

@@ -763,6 +763,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 */
/**/
2206,
/**/ /**/
2205, 2205,
/**/ /**/