From: Bram Moolenaar Date: Fri, 7 Oct 2022 21:46:24 +0000 (+0100) Subject: patch 9.0.0689: compiler warning for unused function X-Git-Tag: v9.0.0689 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fcb86b0a99a9abedc408c99dae7591b6da832be8;p=vim 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 index 2108099bb..1d6023846 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 689, /**/ 688, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 9f36dc951..468c3846d 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2682,6 +2682,7 @@ check_args_shadowing(ufunc_T *ufunc, cctx_T *cctx) 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".