From 18406398470a48262fa0f68abd8e85170c31f764 Mon Sep 17 00:00:00 2001 From: dm Date: Wed, 18 Nov 1998 15:45:13 +0000 Subject: revert last change for K\&R C compilers without const --- usr.bin/yacc/skeleton.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index 50054b93ee3..c2c55d079f4 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -1,4 +1,4 @@ -/* $OpenBSD: skeleton.c,v 1.12 1998/11/18 03:22:55 dm Exp $ */ +/* $OpenBSD: skeleton.c,v 1.13 1998/11/18 15:45:12 dm Exp $ */ /* $NetBSD: skeleton.c,v 1.10 1996/03/25 00:36:18 mrg Exp $ */ /* @@ -63,7 +63,11 @@ char *banner[] = { "#ifndef lint", "/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/", - "static const char yyrcsid[] = \"$OpenBSD: skeleton.c,v 1.12 1998/11/18 03:22:55 dm Exp $\";", + "static char yyrcsid[]", + "#if __GNUC__ == 2", + " __attribute__ ((unused))", + "#endif /* __GNUC__ == 2 */", + " = \"$OpenBSD: skeleton.c,v 1.13 1998/11/18 15:45:12 dm Exp $\";", "#endif", "#include ", "#define YYBYACC 1", -- cgit v1.2.3