0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1676: compiler warnings for function typecast

Problem:    Compiler warnings for function typecast.
Solution:   Add an intermediate cast to "void *".
This commit is contained in:
Bram Moolenaar
2020-09-13 22:00:12 +02:00
parent 05c1acd5e1
commit a4224860a4
2 changed files with 4 additions and 2 deletions

View 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);
}

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1676,
/**/
1675,
/**/