patch 9.1.0588: The maze program no longer compiles on newer clang

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>
This commit is contained in:
Mohamed Akram
2024-07-15 20:23:36 +02:00
committed by Christian Brabandt
parent 1cc4cae961
commit 3ce274682b
2 changed files with 3 additions and 1 deletions

View 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 ("._");

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
588,
/**/
587,
/**/