patch 7.4.2206
Problem: Warning for unused function.
Solution: Put the function inside #ifdef. (John Marriott)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 379bc63..ba6f0f5 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -4699,12 +4699,10 @@
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 @@
EMSG(_(e_dictreq));
}
}
-#endif
}
+#endif
/*
* "getloclist()" function