]> granicus.if.org Git - vim/commitdiff
patch 7.4.2206 v7.4.2206
authorBram Moolenaar <Bram@vim.org>
Sat, 13 Aug 2016 13:29:14 +0000 (15:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Aug 2016 13:29:14 +0000 (15:29 +0200)
Problem:    Warning for unused function.
Solution:   Put the function inside #ifdef. (John Marriott)

src/evalfunc.c
src/version.c

index 379bc634fc84a7a696b77c3da92fe67a5ba2bfe9..ba6f0f597f578672307952d5c9bc8b3e38dc5929 100644 (file)
@@ -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
index dd7b4b73517e56dd5b3d99691e7d58e6e1eeeffd..bb6eaba247d78aad9cce95985f4b21fc95833907 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2206,
 /**/
     2205,
 /**/