Permalink
Browse files

patch 7.4.2206

Problem:    Warning for unused function.
Solution:   Put the function inside #ifdef. (John Marriott)
  • Loading branch information...
1 parent e9d58a6 commit 4ae209597c486d630be929d2865ea112da8bc842 @brammool brammool committed Aug 13, 2016
Showing with 4 additions and 4 deletions.
  1. +2 −4 src/evalfunc.c
  2. +2 −0 src/version.c
View
@@ -4699,12 +4699,10 @@ f_getline(typval_T *argvars, typval_T *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
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 (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));
}
}
-#endif
}
+#endif
/*
* "getloclist()" function
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2206,
+/**/
2205,
/**/
2204,

0 comments on commit 4ae2095

Please sign in to comment.