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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202009061509.086F9j0u923069%40masaka.moolenaar.net.