Mercurial > vim
diff src/os_unix.c @ 22254:900737f2ee98 v8.2.1676
patch 8.2.1676: compiler warnings for function typecast
Commit: https://github.com/vim/vim/commit/a4224860a498eb870280130e00fe6f376b7a2e6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 13 22:00:12 2020 +0200
patch 8.2.1676: compiler warnings for function typecast
Problem: Compiler warnings for function typecast.
Solution: Add an intermediate cast to "void *".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Sep 2020 22:15:03 +0200 |
parents | d9acf1e1c799 |
children | d0dd03c04140 |
line wrap: on
line diff
--- 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); }