diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-06 17:09:12 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-06 17:09:12 +0200 |
commit | 30d6413782c8206899cee109f521895a03c76441 (patch) | |
tree | a9066665ebc5a2810d2a64a87de31209e43182e7 | |
parent | 3986b94b090ea258109630008611230a599999ab (diff) |
patch 8.2.1625: compiler warning for use of fptr_Tv8.2.1625
Problem: Compiler warning for use of fptr_T.
Solution: Make the type less strict.
-rw-r--r-- | src/regexp.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/regexp.c b/src/regexp.c index 375731c3cd..22b2d17a33 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 6a6d994880..e361679658 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1625, +/**/ 1624, /**/ 1623, |