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:
@@ -7434,7 +7434,7 @@ mch_libcall(
|
|||||||
)))
|
)))
|
||||||
{
|
{
|
||||||
if (string_result == NULL)
|
if (string_result == NULL)
|
||||||
retval_int = ((STRPROCINT)ProcAdd)(argstring);
|
retval_int = ((STRPROCINT)(void *)ProcAdd)(argstring);
|
||||||
else
|
else
|
||||||
retval_str = (ProcAdd)(argstring);
|
retval_str = (ProcAdd)(argstring);
|
||||||
}
|
}
|
||||||
@@ -7456,7 +7456,7 @@ mch_libcall(
|
|||||||
)))
|
)))
|
||||||
{
|
{
|
||||||
if (string_result == NULL)
|
if (string_result == NULL)
|
||||||
retval_int = ((INTPROCINT)ProcAddI)(argint);
|
retval_int = ((INTPROCINT)(void *)ProcAddI)(argint);
|
||||||
else
|
else
|
||||||
retval_str = (ProcAddI)(argint);
|
retval_str = (ProcAddI)(argint);
|
||||||
}
|
}
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1676,
|
||||||
/**/
|
/**/
|
||||||
1675,
|
1675,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user