diff options
author | dm <dm@cvs.openbsd.org> | 1998-11-18 15:45:13 +0000 |
---|---|---|
committer | dm <dm@cvs.openbsd.org> | 1998-11-18 15:45:13 +0000 |
commit | 18406398470a48262fa0f68abd8e85170c31f764 (patch) | |
tree | 0c86a8e59357c9bc119f81c7776438adc50dc432 /usr.bin | |
parent | 770d9833edf0ed5f94e9d64ea7bd3abb62c905cc (diff) |
revert last change for K\&R C compilers without const
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 <stdlib.h>", "#define YYBYACC 1", |