1
0
forked from aniani/vim

patch 8.2.1625: compiler warning for use of fptr_T

Problem:    Compiler warning for use of fptr_T.
Solution:   Make the type less strict.
This commit is contained in:
Bram Moolenaar
2020-09-06 17:09:12 +02:00
parent 3986b94b09
commit 30d6413782
2 changed files with 4 additions and 2 deletions

View File

@@ -1691,9 +1691,9 @@ cstrchr(char_u *s, int c)
* 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.
* void pointer. This should work for all compilers.
*/
typedef void (*(*fptr_T)(int *, int))();
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);