From: Bram Moolenaar Date: Sun, 6 Sep 2020 15:09:12 +0000 (+0200) Subject: patch 8.2.1625: compiler warning for use of fptr_T X-Git-Tag: v8.2.1625 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30d6413782c8206899cee109f521895a03c76441;p=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. --- diff --git a/src/regexp.c b/src/regexp.c index 375731c3c..22b2d17a3 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -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); diff --git a/src/version.c b/src/version.c index 6a6d99488..e36167965 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1625, /**/ 1624, /**/