]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0588: The maze program no longer compiles on newer clang v9.1.0588
authorMohamed Akram <mohd.akram@outlook.com>
Mon, 15 Jul 2024 18:23:36 +0000 (20:23 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 15 Jul 2024 18:23:36 +0000 (20:23 +0200)
Problem:  The maze program no longer compiles on newer clang
Solution: Use ANSI C function definition for main()
          (Mohamed Akram)

Implicit int is an error in newer versions of clang.

closes: #15247

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/macros/maze/mazeclean.c
src/version.c

index 04dcebd22a9cb81a251142c7af7b9374c643a459..f0f0bb69cdfcedc23aa5f95a494beec52fe43c6d 100644 (file)
@@ -8,7 +8,7 @@
 
 char *M, A, Z, E = 40, line[80], T[3];
 int
-main (C)
+main (int C)
 {
   for (M = line + E, *line = A = scanf ("%d", &C); --E; line[E] = M[E] = E)
     printf ("._");
index 9ce9c8f7af8bdf8eb8e6f2009be5c8ee50407e39..e97346dbcb9de66c38f6e9cafbc17c4e9e9571e3 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    588,
 /**/
     587,
 /**/