home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.3 / 7.3.929 < prev    next >
Encoding:
Internet Message Format  |  2013-05-05  |  4.2 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.929
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.929 (after 7.3.924)
  11. Problem:    Compiler warning for unused variable. Not freeing unused string.
  12. Solution:   Remove the variable. Clear the options.
  13. Files:      src/option.c
  14.  
  15.  
  16. *** ../vim-7.3.928/src/option.c    2013-05-06 03:52:44.000000000 +0200
  17. --- src/option.c    2013-05-06 06:42:03.000000000 +0200
  18. ***************
  19. *** 9705,9713 ****
  20.   {
  21.       struct vimoption *p;
  22.       int        opt_idx;
  23. !     buf_T *buf = (buf_T *) from;
  24. !     win_T *win = (win_T *) from;
  25.   
  26.       opt_idx = findoption(name);
  27.       p = &(options[opt_idx]);
  28. --- 9705,9711 ----
  29.   {
  30.       struct vimoption *p;
  31.       int        opt_idx;
  32. !     buf_T    *buf = (buf_T *)from;
  33.   
  34.       opt_idx = findoption(name);
  35.       p = &(options[opt_idx]);
  36. ***************
  37. *** 9716,9775 ****
  38.       {
  39.       /* global option with local value: use local value if it's been set */
  40.       case PV_EP:
  41. !         *buf->b_p_ep = NUL;
  42.           break;
  43.       case PV_KP:
  44. !         *buf->b_p_kp = NUL;
  45.           break;
  46.       case PV_PATH:
  47. !         *buf->b_p_path = NUL;
  48.           break;
  49.       case PV_AR:
  50.           buf->b_p_ar = -1;
  51.           break;
  52.       case PV_TAGS:
  53. !         *buf->b_p_tags = NUL;
  54.           break;
  55.   #ifdef FEAT_FIND_ID
  56.       case PV_DEF:
  57. !         *buf->b_p_def = NUL;
  58.           break;
  59.       case PV_INC:
  60. !         *buf->b_p_inc = NUL;
  61.           break;
  62.   #endif
  63.   #ifdef FEAT_INS_EXPAND
  64.       case PV_DICT:
  65. !         *buf->b_p_dict = NUL;
  66.           break;
  67.       case PV_TSR:
  68. !         *buf->b_p_tsr = NUL;
  69.           break;
  70.   #endif
  71.   #ifdef FEAT_QUICKFIX
  72.       case PV_EFM:
  73. !         *buf->b_p_efm = NUL;
  74.           break;
  75.       case PV_GP:
  76. !         *buf->b_p_gp = NUL;
  77.           break;
  78.       case PV_MP:
  79. !         *buf->b_p_mp = NUL;
  80.           break;
  81.   #endif
  82.   #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
  83.       case PV_BEXPR:
  84. !         *buf->b_p_bexpr = NUL;
  85.           break;
  86.   #endif
  87.   #if defined(FEAT_CRYPT)
  88.       case PV_CM:
  89. !         *buf->b_p_cm = NUL;
  90.           break;
  91.   #endif
  92.   #ifdef FEAT_STL_OPT
  93.       case PV_STL:
  94. !         *win->w_p_stl = NUL;
  95.           break;
  96.   #endif
  97.       }
  98. --- 9714,9773 ----
  99.       {
  100.       /* global option with local value: use local value if it's been set */
  101.       case PV_EP:
  102. !         clear_string_option(&buf->b_p_ep);
  103.           break;
  104.       case PV_KP:
  105. !         clear_string_option(&buf->b_p_kp);
  106.           break;
  107.       case PV_PATH:
  108. !         clear_string_option(&buf->b_p_path);
  109.           break;
  110.       case PV_AR:
  111.           buf->b_p_ar = -1;
  112.           break;
  113.       case PV_TAGS:
  114. !         clear_string_option(&buf->b_p_tags);
  115.           break;
  116.   #ifdef FEAT_FIND_ID
  117.       case PV_DEF:
  118. !         clear_string_option(&buf->b_p_def);
  119.           break;
  120.       case PV_INC:
  121. !         clear_string_option(&buf->b_p_inc);
  122.           break;
  123.   #endif
  124.   #ifdef FEAT_INS_EXPAND
  125.       case PV_DICT:
  126. !         clear_string_option(&buf->b_p_dict);
  127.           break;
  128.       case PV_TSR:
  129. !         clear_string_option(&buf->b_p_tsr);
  130.           break;
  131.   #endif
  132.   #ifdef FEAT_QUICKFIX
  133.       case PV_EFM:
  134. !         clear_string_option(&buf->b_p_efm);
  135.           break;
  136.       case PV_GP:
  137. !         clear_string_option(&buf->b_p_gp);
  138.           break;
  139.       case PV_MP:
  140. !         clear_string_option(&buf->b_p_mp);
  141.           break;
  142.   #endif
  143.   #if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
  144.       case PV_BEXPR:
  145. !         clear_string_option(&buf->b_p_bexpr);
  146.           break;
  147.   #endif
  148.   #if defined(FEAT_CRYPT)
  149.       case PV_CM:
  150. !         clear_string_option(&buf->b_p_cm);
  151.           break;
  152.   #endif
  153.   #ifdef FEAT_STL_OPT
  154.       case PV_STL:
  155. !         clear_string_option(&((win_T *)from)->w_p_stl);
  156.           break;
  157.   #endif
  158.       }
  159. *** ../vim-7.3.928/src/version.c    2013-05-06 06:26:10.000000000 +0200
  160. --- src/version.c    2013-05-06 06:35:06.000000000 +0200
  161. ***************
  162. *** 730,731 ****
  163. --- 730,733 ----
  164.   {   /* Add new patch number below this line */
  165. + /**/
  166. +     929,
  167.   /**/
  168.  
  169. -- 
  170. Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
  171.     Windows 95: "Press CTRL-ALT-DEL to reboot"
  172. Windows NT 4.0: "Press CTRL-ALT-DEL to login"
  173.  
  174.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  175. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  176. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  177.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  178.