To: vim_dev@googlegroups.com Subject: Patch 7.4.2206 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2206 Problem: Warning for unused function. Solution: Put the function inside #ifdef. (John Marriott) Files: src/evalfunc.c *** ../vim-7.4.2205/src/evalfunc.c 2016-08-13 15:07:38.347640696 +0200 --- src/evalfunc.c 2016-08-13 15:27:16.444905363 +0200 *************** *** 4699,4710 **** 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); ! 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) --- 4699,4708 ---- get_buffer_lines(curbuf, lnum, end, retlist, rettv); } ! #ifdef FEAT_QUICKFIX static void get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv) { if (what_arg->v_type == VAR_UNKNOWN) { if (rettv_list_alloc(rettv) == OK) *************** *** 4727,4734 **** EMSG(_(e_dictreq)); } } - #endif } /* * "getloclist()" function --- 4725,4732 ---- EMSG(_(e_dictreq)); } } } + #endif /* * "getloclist()" function *** ../vim-7.4.2205/src/version.c 2016-08-13 15:07:38.347640696 +0200 --- src/version.c 2016-08-13 15:28:04.348470777 +0200 *************** *** 765,766 **** --- 765,768 ---- { /* Add new patch number below this line */ + /**/ + 2206, /**/ -- hundred-and-one symptoms of being an internet addict: 19. All of your friends have an @ in their names. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///