diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-27 08:05:19 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-27 08:05:19 +0000 |
commit | c7ad38533fc080c6ea5d79db188dd9e7fbc773a2 (patch) | |
tree | 69c547d5aa053b64d093e930b0c2b1340ada0f2e | |
parent | c5d01c727c042c1a6ae0a86dcc5f71f6c5d11a73 (diff) |
Remove some GCC warnings in generated output; from Steve Price via FreeBSD
-rw-r--r-- | usr.bin/yacc/skeleton.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index e3327fcfac2..ba5aa1e7acd 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeleton.c,v 1.6 1996/07/28 02:03:26 deraadt Exp $ */ +/* $OpenBSD: skeleton.c,v 1.7 1996/12/27 08:05:18 tholo Exp $ */ /* $NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $ */ /* @@ -63,7 +63,7 @@ char *banner[] = { "#ifndef lint", "/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/", - "static char yyrcsid[] = \"$OpenBSD: skeleton.c,v 1.6 1996/07/28 02:03:26 deraadt Exp $\";", + "static const char yyrcsid[] = \"$OpenBSD: skeleton.c,v 1.7 1996/12/27 08:05:18 tholo Exp $\";", "#endif", "#include <stdlib.h>", "#define YYBYACC 1", @@ -233,12 +233,12 @@ char *body[] = " goto yyreduce;", " }", " if (yyerrflag) goto yyinrecovery;", - "#ifdef lint", + "#if defined(lint) || defined(__GNUC__)", " goto yynewerror;", "#endif", "yynewerror:", " yyerror(\"syntax error\");", - "#ifdef lint", + "#if defined(lint) || defined(__GNUC__)", " goto yyerrlab;", "#endif", "yyerrlab:", |