To: vim_dev@googlegroups.com Subject: Patch 8.2.1676 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1676 Problem: Compiler warnings for function typecast. Solution: Add an intermediate cast to "void *". Files: src/os_unix.c *** ../vim-8.2.1675/src/os_unix.c 2020-08-30 17:24:34.277662302 +0200 --- src/os_unix.c 2020-09-13 21:58:42.923711775 +0200 *************** *** 7434,7440 **** ))) { if (string_result == NULL) ! retval_int = ((STRPROCINT)ProcAdd)(argstring); else retval_str = (ProcAdd)(argstring); } --- 7434,7440 ---- ))) { if (string_result == NULL) ! retval_int = ((STRPROCINT)(void *)ProcAdd)(argstring); else retval_str = (ProcAdd)(argstring); } *************** *** 7456,7462 **** ))) { if (string_result == NULL) ! retval_int = ((INTPROCINT)ProcAddI)(argint); else retval_str = (ProcAddI)(argint); } --- 7456,7462 ---- ))) { if (string_result == NULL) ! retval_int = ((INTPROCINT)(void *)ProcAddI)(argint); else retval_str = (ProcAddI)(argint); } *** ../vim-8.2.1675/src/version.c 2020-09-13 21:01:18.502468650 +0200 --- src/version.c 2020-09-13 21:59:25.059554596 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 1676, /**/ -- So when I saw the post to comp.editors, I rushed over to the FTP site to grab it. So I yank apart the tarball, light x candles, where x= the vim version multiplied by the md5sum of the source divided by the MAC of my NIC (8A3FA78155A8A1D346C3C4A), put on black robes, dim the lights, wave a dead chicken over the hard drive, and summon the power of GNU GCC with the magic words "make config ; make!". [Jason Spence, compiling Vim 5.0] /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///