# HG changeset patch # User Bram Moolenaar # Date 1665180003 -7200 # Node ID 223865a5f0f059902cb78b7b7fde67e5a1721fb7 # Parent 4936e1df91995f0e6b807f5fc489c4a99a651f8a patch 9.0.0689: compiler warning for unused function Commit: https://github.com/vim/vim/commit/fcb86b0a99a9abedc408c99dae7591b6da832be8 Author: Bram Moolenaar Date: Fri Oct 7 22:46:24 2022 +0100 patch 9.0.0689: compiler warning for unused function Problem: Compiler warning for unused function. Solution: Add #ifdef. (John Marriott) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -700,6 +700,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 689, +/**/ 688, /**/ 687, diff --git a/src/vim9compile.c b/src/vim9compile.c --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2682,6 +2682,7 @@ check_args_shadowing(ufunc_T *ufunc, cct return r; } +#ifdef HAS_MESSAGE_WINDOW /* * Get a count before a command. Can only be a number. * Returns zero if there is no count. @@ -2707,6 +2708,7 @@ get_cmd_count(char_u *line, exarg_T *eap } return atol((char *)p); } +#endif /* * Get the compilation type that should be used for "ufunc".