]> granicus.if.org Git - vim/commitdiff
patch 8.2.3387: compiler warning for non-static function v8.2.3387
authorDominique Pelle <dominique.pelle@gmail.com>
Mon, 30 Aug 2021 17:57:34 +0000 (19:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Aug 2021 17:57:34 +0000 (19:57 +0200)
Problem:    Compiler warning for non-static function.
Solution:   Make the function static. (Dominique PellĂ©, closes #8816)

src/strings.c
src/version.c

index 566f4dab4348d5957eedd08a84e961492f15ccb3..0c9e20d176a28673ca6c8ac885b0d01648cd8cd3 100644 (file)
@@ -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);
index 1d657163b479664b0727d6463f7d5038c588b8bc..af45dedfff88ac8f043d36ea703e530d58590bef 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3387,
 /**/
     3386,
 /**/