]> granicus.if.org Git - vim/commitdiff
patch 8.2.1625: compiler warning for use of fptr_T v8.2.1625
authorBram Moolenaar <Bram@vim.org>
Sun, 6 Sep 2020 15:09:12 +0000 (17:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 6 Sep 2020 15:09:12 +0000 (17:09 +0200)
Problem:    Compiler warning for use of fptr_T.
Solution:   Make the type less strict.

src/regexp.c
src/version.c

index 375731c3cdfca477dfba67cc2f5982c5cb00a374..22b2d17a33c39e1c0c2ccf059ac325bcc088af1e 100644 (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);
 
index 6a6d9948804ffc239e456b0fe2c1e1c1cd4b6f07..e361679658961b3aa473085cb2fbedcd55ca4c9f 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1625,
 /**/
     1624,
 /**/