]> granicus.if.org Git - vim/commitdiff
patch 8.2.1676: compiler warnings for function typecast v8.2.1676
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Sep 2020 20:00:12 +0000 (22:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Sep 2020 20:00:12 +0000 (22:00 +0200)
Problem:    Compiler warnings for function typecast.
Solution:   Add an intermediate cast to "void *".

src/os_unix.c
src/version.c

index b58138bf07433bd3c60549113238828b2e7b6138..6f7a9a4cf910f655cbf51f4b0306be039cef6aee 100644 (file)
@@ -7434,7 +7434,7 @@ mch_libcall(
                            )))
                {
                    if (string_result == NULL)
-                       retval_int = ((STRPROCINT)ProcAdd)(argstring);
+                       retval_int = ((STRPROCINT)(void *)ProcAdd)(argstring);
                    else
                        retval_str = (ProcAdd)(argstring);
                }
@@ -7456,7 +7456,7 @@ mch_libcall(
                            )))
                {
                    if (string_result == NULL)
-                       retval_int = ((INTPROCINT)ProcAddI)(argint);
+                       retval_int = ((INTPROCINT)(void *)ProcAddI)(argint);
                    else
                        retval_str = (ProcAddI)(argint);
                }
index 57acd28f22e76a786473adef613c1326f515715f..b8891ff66723fc44e0fd6deb4fce72fd4ec42766 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1676,
 /**/
     1675,
 /**/