summaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-13 22:00:12 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-13 22:00:12 +0200
commita4224860a498eb870280130e00fe6f376b7a2e6b (patch)
tree441440b7d94c59fb4c6268f6400c353fe4056e82 /src/os_unix.c
parent05c1acd5e1564ea4dbc7d4be26908af6909f43f6 (diff)
downloadvim-git-a4224860a498eb870280130e00fe6f376b7a2e6b.tar.gz
patch 8.2.1676: compiler warnings for function typecastv8.2.1676
Problem: Compiler warnings for function typecast. Solution: Add an intermediate cast to "void *".
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index b58138bf0..6f7a9a4cf 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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);
}