To: vim-dev@vim.org Subject: Patch 6.1.387 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.387 (depends on 6.1.373) Problem: Compiler warning for pointer cast. Solution: Add (char_u *). Files: src/option.c *** ../vim61.386/src/option.c Sun Mar 9 15:15:54 2003 --- src/option.c Tue Mar 11 10:29:15 2003 *************** *** 2590,2596 **** { if ((options[opt_idx].flags & P_GETTEXT) && options[opt_idx].var != NULL) ! p = _(*(char_u **)options[opt_idx].var); else p = option_expand(opt_idx, NULL); if (p != NULL && (p = vim_strsave(p)) != NULL) --- 2590,2596 ---- { if ((options[opt_idx].flags & P_GETTEXT) && options[opt_idx].var != NULL) ! p = (char_u *)_(*(char **)options[opt_idx].var); else p = option_expand(opt_idx, NULL); if (p != NULL && (p = vim_strsave(p)) != NULL) *** ../vim61.386/src/version.c Mon Mar 10 10:10:04 2003 --- src/version.c Tue Mar 11 12:38:19 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 387, /**/ -- How To Keep A Healthy Level Of Insanity: 13. Go to a poetry recital and ask why the poems don't rhyme. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///