81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.231
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.231
81c2858
Problem:    Warning for unreacheable code.
81c2858
Solution:   Add #ifdef.
81c2858
Files:	    src/if_perl.xs
81c2858
81c2858
81c2858
*** ../vim-7.2.230/src/if_perl.xs	2009-07-09 20:06:30.000000000 +0200
81c2858
--- src/if_perl.xs	2009-07-09 13:02:16.000000000 +0200
81c2858
***************
81c2858
*** 720,728 ****
81c2858
--- 720,730 ----
81c2858
  #ifdef HAVE_SANDBOX
81c2858
      if (sandbox)
81c2858
      {
81c2858
+ # ifndef MAKE_TEST  /* avoid a warning for unreachable code */
81c2858
  	if ((safe = perl_get_sv( "VIM::safe", FALSE )) == NULL || !SvTRUE(safe))
81c2858
  	    EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module"));
81c2858
  	else
81c2858
+ # endif
81c2858
  	{
81c2858
  	    PUSHMARK(SP);
81c2858
  	    XPUSHs(safe);
81c2858
*** ../vim-7.2.230/src/version.c	2009-07-14 13:44:43.000000000 +0200
81c2858
--- src/version.c	2009-07-14 16:04:07.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     231,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
From "know your smileys":
81c2858
 ~#:-(	I just washed my hair, and I can't do nuthin' with it.
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///