1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Compiler warning for accessing mediumVersion. (Tony Mechelynck)
12 Solution: Use the pointer instead of the array itself. (Dominique Pelle)
16 *** ../vim-7.3.040/src/version.c 2010-10-27 13:37:39.000000000 +0200
17 --- src/version.c 2010-10-27 15:58:26.000000000 +0200
22 /* Check for 9.9x or 9.9xx, alpha/beta version */
23 ! if (isalpha((int)mediumVersion[3]))
25 ! if (isalpha((int)mediumVersion[4]))
26 sprintf((char *)vers + 5, ".%d%s", highest_patch(),
32 /* Check for 9.9x or 9.9xx, alpha/beta version */
33 ! if (isalpha((int)vers[3]))
35 ! if (isalpha((int)vers[4]))
36 sprintf((char *)vers + 5, ".%d%s", highest_patch(),
39 *** ../vim-7.3.040/src/version.c 2010-10-27 13:37:39.000000000 +0200
40 --- src/version.c 2010-10-27 15:58:26.000000000 +0200
44 { /* Add new patch number below this line */
50 ARTHUR: I command you as King of the Britons to stand aside!
51 BLACK KNIGHT: I move for no man.
52 The Quest for the Holy Grail (Monty Python)
54 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
55 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\ download, build and distribute -- http://www.A-A-P.org ///
57 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///