changeset 25703:e9687a2f6fb3 v8.2.3387

patch 8.2.3387: compiler warning for non-static function Commit: https://github.com/vim/vim/commit/de05ae71589f46c5d27642c33fe5eb21b22aaf5d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Mon Aug 30 19:57:34 2021 +0200 patch 8.2.3387: compiler warning for non-static function Problem: Compiler warning for non-static function. Solution: Make the function static. (Dominique Pell?, closes https://github.com/vim/vim/issues/8816)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Aug 2021 20:00:05 +0200
parents cc125f725363
children 168dc6cad230
files src/strings.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/strings.c
+++ b/src/strings.c
@@ -127,7 +127,7 @@ csh_like_shell(void)
 /*
  * Return TRUE when 'shell' has "fish" in the tail.
  */
-    int
+    static int
 fish_like_shell(void)
 {
     return (strstr((char *)gettail(p_sh), "fish") != NULL);
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3387,
+/**/
     3386,
 /**/
     3385,