Karsten Hopp fe46cb
To: vim_dev@googlegroups.com
Karsten Hopp fe46cb
Subject: Patch 7.3.929
Karsten Hopp fe46cb
Fcc: outbox
Karsten Hopp fe46cb
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp fe46cb
Mime-Version: 1.0
Karsten Hopp fe46cb
Content-Type: text/plain; charset=UTF-8
Karsten Hopp fe46cb
Content-Transfer-Encoding: 8bit
Karsten Hopp fe46cb
------------
Karsten Hopp fe46cb
Karsten Hopp fe46cb
Patch 7.3.929 (after 7.3.924)
Karsten Hopp fe46cb
Problem:    Compiler warning for unused variable. Not freeing unused string.
Karsten Hopp fe46cb
Solution:   Remove the variable. Clear the options.
Karsten Hopp fe46cb
Files:      src/option.c
Karsten Hopp fe46cb
Karsten Hopp fe46cb
Karsten Hopp fe46cb
*** ../vim-7.3.928/src/option.c	2013-05-06 03:52:44.000000000 +0200
Karsten Hopp fe46cb
--- src/option.c	2013-05-06 06:42:03.000000000 +0200
Karsten Hopp fe46cb
***************
Karsten Hopp fe46cb
*** 9705,9713 ****
Karsten Hopp fe46cb
  {
Karsten Hopp fe46cb
      struct vimoption *p;
Karsten Hopp fe46cb
      int		opt_idx;
Karsten Hopp fe46cb
! 
Karsten Hopp fe46cb
!     buf_T *buf = (buf_T *) from;
Karsten Hopp fe46cb
!     win_T *win = (win_T *) from;
Karsten Hopp fe46cb
  
Karsten Hopp fe46cb
      opt_idx = findoption(name);
Karsten Hopp fe46cb
      p = &(options[opt_idx]);
Karsten Hopp fe46cb
--- 9705,9711 ----
Karsten Hopp fe46cb
  {
Karsten Hopp fe46cb
      struct vimoption *p;
Karsten Hopp fe46cb
      int		opt_idx;
Karsten Hopp fe46cb
!     buf_T	*buf = (buf_T *)from;
Karsten Hopp fe46cb
  
Karsten Hopp fe46cb
      opt_idx = findoption(name);
Karsten Hopp fe46cb
      p = &(options[opt_idx]);
Karsten Hopp fe46cb
***************
Karsten Hopp fe46cb
*** 9716,9775 ****
Karsten Hopp fe46cb
      {
Karsten Hopp fe46cb
  	/* global option with local value: use local value if it's been set */
Karsten Hopp fe46cb
  	case PV_EP:
Karsten Hopp fe46cb
! 	    *buf->b_p_ep = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_KP:
Karsten Hopp fe46cb
! 	    *buf->b_p_kp = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_PATH:
Karsten Hopp fe46cb
! 	    *buf->b_p_path = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_AR:
Karsten Hopp fe46cb
  	    buf->b_p_ar = -1;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_TAGS:
Karsten Hopp fe46cb
! 	    *buf->b_p_tags = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #ifdef FEAT_FIND_ID
Karsten Hopp fe46cb
  	case PV_DEF:
Karsten Hopp fe46cb
! 	    *buf->b_p_def = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_INC:
Karsten Hopp fe46cb
! 	    *buf->b_p_inc = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_INS_EXPAND
Karsten Hopp fe46cb
  	case PV_DICT:
Karsten Hopp fe46cb
! 	    *buf->b_p_dict = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_TSR:
Karsten Hopp fe46cb
! 	    *buf->b_p_tsr = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_QUICKFIX
Karsten Hopp fe46cb
  	case PV_EFM:
Karsten Hopp fe46cb
! 	    *buf->b_p_efm = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_GP:
Karsten Hopp fe46cb
! 	    *buf->b_p_gp = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_MP:
Karsten Hopp fe46cb
! 	    *buf->b_p_mp = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
Karsten Hopp fe46cb
  	case PV_BEXPR:
Karsten Hopp fe46cb
! 	    *buf->b_p_bexpr = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #if defined(FEAT_CRYPT)
Karsten Hopp fe46cb
  	case PV_CM:
Karsten Hopp fe46cb
! 	    *buf->b_p_cm = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_STL_OPT
Karsten Hopp fe46cb
  	case PV_STL:
Karsten Hopp fe46cb
! 	    *win->w_p_stl = NUL;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
      }
Karsten Hopp fe46cb
--- 9714,9773 ----
Karsten Hopp fe46cb
      {
Karsten Hopp fe46cb
  	/* global option with local value: use local value if it's been set */
Karsten Hopp fe46cb
  	case PV_EP:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_ep);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_KP:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_kp);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_PATH:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_path);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_AR:
Karsten Hopp fe46cb
  	    buf->b_p_ar = -1;
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_TAGS:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_tags);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #ifdef FEAT_FIND_ID
Karsten Hopp fe46cb
  	case PV_DEF:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_def);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_INC:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_inc);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_INS_EXPAND
Karsten Hopp fe46cb
  	case PV_DICT:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_dict);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_TSR:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_tsr);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_QUICKFIX
Karsten Hopp fe46cb
  	case PV_EFM:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_efm);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_GP:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_gp);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  	case PV_MP:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_mp);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
Karsten Hopp fe46cb
  	case PV_BEXPR:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_bexpr);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #if defined(FEAT_CRYPT)
Karsten Hopp fe46cb
  	case PV_CM:
Karsten Hopp fe46cb
! 	    clear_string_option(&buf->b_p_cm);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
  #ifdef FEAT_STL_OPT
Karsten Hopp fe46cb
  	case PV_STL:
Karsten Hopp fe46cb
! 	    clear_string_option(&((win_T *)from)->w_p_stl);
Karsten Hopp fe46cb
  	    break;
Karsten Hopp fe46cb
  #endif
Karsten Hopp fe46cb
      }
Karsten Hopp fe46cb
*** ../vim-7.3.928/src/version.c	2013-05-06 06:26:10.000000000 +0200
Karsten Hopp fe46cb
--- src/version.c	2013-05-06 06:35:06.000000000 +0200
Karsten Hopp fe46cb
***************
Karsten Hopp fe46cb
*** 730,731 ****
Karsten Hopp fe46cb
--- 730,733 ----
Karsten Hopp fe46cb
  {   /* Add new patch number below this line */
Karsten Hopp fe46cb
+ /**/
Karsten Hopp fe46cb
+     929,
Karsten Hopp fe46cb
  /**/
Karsten Hopp fe46cb
Karsten Hopp fe46cb
-- 
Karsten Hopp fe46cb
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
Karsten Hopp fe46cb
    Windows 95: "Press CTRL-ALT-DEL to reboot"
Karsten Hopp fe46cb
Windows NT 4.0: "Press CTRL-ALT-DEL to login"
Karsten Hopp fe46cb
Karsten Hopp fe46cb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp fe46cb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp fe46cb
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp fe46cb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///