diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-17 16:56:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-17 16:56:28 +0100 |
commit | 6d721c7e10251ad8c89a461eed99d8cf2659c1df (patch) | |
tree | 0e9a92e1a0a96e9612d5408c340b25a21d9e303c /src/evalfunc.c | |
parent | de318c5c35ed0d65fd2a07196cb8acd5ee6d9bf8 (diff) |
patch 8.0.0199: compiler warnings for libcallv8.0.0199
Problem: Warning for an unused parameter when the libcall feature is
disabled. Warning for a function type cast when compiling with
-pedantic.
Solution: Add UNUSED. Use a different type cast. (Damien Molinier)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 768a0f1574..4b6bfaa137 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6859,10 +6859,8 @@ f_len(typval_T *argvars, typval_T *rettv) } } -static void libcall_common(typval_T *argvars, typval_T *rettv, int type); - static void -libcall_common(typval_T *argvars, typval_T *rettv, int type) +libcall_common(typval_T *argvars UNUSED, typval_T *rettv, int type) { #ifdef FEAT_LIBCALL char_u *string_in; |