Patch 8.2.1625
Problem: Compiler warning for use of fptr_T.
Solution: Make the type less strict.
Files: src/regexp.c
*** ../vim-8.2.1624/src/regexp.c 2020-09-06 15:14:42.217505521 +0200
--- src/regexp.c 2020-09-06 17:07:12.250280392 +0200
***************
*** 1691,1699 ****
* We should define ftpr as a pointer to a function returning a pointer to
* a function returning a pointer to a function ...
* This is impossible, so we declare a pointer to a function returning a
! * pointer to a function returning void. This should work for all compilers.
*/
! typedef void (*(*fptr_T)(int *, int))();
static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash);
--- 1691,1699 ----
* We should define ftpr as a pointer to a function returning a pointer to
* a function returning a pointer to a function ...
* This is impossible, so we declare a pointer to a function returning a
! * void pointer. This should work for all compilers.
*/
! typedef void (*(*fptr_T)(int *, int));
static int vim_regsub_both(char_u *source, typval_T *expr, char_u *dest, int copy, int magic, int backslash);
*** ../vim-8.2.1624/src/version.c 2020-09-06 16:09:01.233599196 +0200
--- src/version.c 2020-09-06 17:08:05.374162628 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1625,
/**/
--
There can't be a crisis today, my schedule is already full.
/// Bram Moolenaar -- Br...@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 ///