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 -- b...@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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui