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)
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user