Mercurial > vim
changeset 9863:cbe23f6769f9 v7.4.2206
commit https://github.com/vim/vim/commit/4ae209597c486d630be929d2865ea112da8bc842
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 13 15:29:14 2016 +0200
patch 7.4.2206
Problem: Warning for unused function.
Solution: Put the function inside #ifdef. (John Marriott)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 13 Aug 2016 15:30:05 +0200 |
parents | 032bb8fbda7a |
children | 3b602e8d0cea |
files | src/evalfunc.c src/version.c |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -4699,12 +4699,10 @@ f_getline(typval_T *argvars, typval_T *r 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, ty EMSG(_(e_dictreq)); } } -#endif -} +} +#endif /* * "getloclist()" function