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