From f8c7b1919f2d0134b507bb5ea580cf1e96f513db Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 18 Jun 1997 19:08:05 +0000 Subject: [PATCH] Kill warnings in skeleton for gcc -Wall --- usr.bin/yacc/skeleton.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index a6b3daaa2c71..d7ab169b422d 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -1,4 +1,4 @@ -/* $NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $ */ +/* $NetBSD: skeleton.c,v 1.11 1997/06/18 19:08:05 christos Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)skeleton.c 5.8 (Berkeley) 4/29/95"; #else -static char rcsid[] = "$NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $"; +static char rcsid[] = "$NetBSD: skeleton.c,v 1.11 1997/06/18 19:08:05 christos Exp $"; #endif #endif /* not lint */ @@ -60,11 +60,12 @@ static char rcsid[] = "$NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $" char *banner[] = { + "#include ", "#ifndef lint", "#if 0", "static char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";", "#else", - "static char yyrcsid[] = \"$NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $\";", + "__IDSTRING(yyrcsid, \"$NetBSD: skeleton.c,v 1.11 1997/06/18 19:08:05 christos Exp $\");", "#endif", "#endif", "#include ", @@ -132,6 +133,8 @@ char *header[] = char *body[] = { "/* allocate initial stack or double stack size, up to YYMAXDEPTH */", + "int yyparse __P((void));", + "static int yygrowstack __P((void));", "static int yygrowstack()", "{", " int newsize, i;", @@ -227,14 +230,10 @@ char *body[] = " goto yyreduce;", " }", " if (yyerrflag) goto yyinrecovery;", - "#ifdef lint", " goto yynewerror;", - "#endif", "yynewerror:", " yyerror(\"syntax error\");", - "#ifdef lint", " goto yyerrlab;", - "#endif", "yyerrlab:", " ++yynerrs;", "yyinrecovery:",