]>
Commit | Line | Data |
---|---|---|
215db38d AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.231 | |
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.2.231 | |
11 | Problem: Warning for unreacheable code. | |
12 | Solution: Add #ifdef. | |
13 | Files: src/if_perl.xs | |
14 | ||
15 | ||
16 | *** ../vim-7.2.230/src/if_perl.xs 2009-07-09 20:06:30.000000000 +0200 | |
17 | --- src/if_perl.xs 2009-07-09 13:02:16.000000000 +0200 | |
18 | *************** | |
19 | *** 720,728 **** | |
20 | --- 720,730 ---- | |
21 | #ifdef HAVE_SANDBOX | |
22 | if (sandbox) | |
23 | { | |
24 | + # ifndef MAKE_TEST /* avoid a warning for unreachable code */ | |
25 | if ((safe = perl_get_sv( "VIM::safe", FALSE )) == NULL || !SvTRUE(safe)) | |
26 | EMSG(_("E299: Perl evaluation forbidden in sandbox without the Safe module")); | |
27 | else | |
28 | + # endif | |
29 | { | |
30 | PUSHMARK(SP); | |
31 | XPUSHs(safe); | |
32 | *** ../vim-7.2.230/src/version.c 2009-07-14 13:44:43.000000000 +0200 | |
33 | --- src/version.c 2009-07-14 16:04:07.000000000 +0200 | |
34 | *************** | |
35 | *** 678,679 **** | |
36 | --- 678,681 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 231, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | From "know your smileys": | |
44 | ~#:-( I just washed my hair, and I can't do nuthin' with it. | |
45 | ||
46 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
47 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
48 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
49 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |