summaryrefslogtreecommitdiff
path: root/usr.bin/yacc/skeleton.c
diff options
context:
space:
mode:
authordm <dm@cvs.openbsd.org>1998-11-17 06:13:44 +0000
committerdm <dm@cvs.openbsd.org>1998-11-17 06:13:44 +0000
commit315a11e3e155b9dc651f9e1b4f2582ddfe91ddca (patch)
treed2a6f48d0194074380b99519d9f27f01534b9153 /usr.bin/yacc/skeleton.c
parent23887aee1a1d90806ed43a85cd4475364b5413ac (diff)
add __attribute__ ((unused)) to the yyrcsid under GCC 2
Diffstat (limited to 'usr.bin/yacc/skeleton.c')
-rw-r--r--usr.bin/yacc/skeleton.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c
index 35eff9493ff..539ace4fcce 100644
--- a/usr.bin/yacc/skeleton.c
+++ b/usr.bin/yacc/skeleton.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: skeleton.c,v 1.10 1998/09/08 04:21:08 millert Exp $ */
+/* $OpenBSD: skeleton.c,v 1.11 1998/11/17 06:13:43 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 char yyrcsid[] = \"$OpenBSD: skeleton.c,v 1.10 1998/09/08 04:21:08 millert Exp $\";",
+ "static char yyrcsid[]",
+ "#if __GNUC__ == 2",
+ " __attribute__ ((unused))",
+ "#endif /* __GNUC__ == 2 */",
+ " = \"$OpenBSD: skeleton.c,v 1.11 1998/11/17 06:13:43 dm Exp $\";",
"#endif",
"#include <stdlib.h>",
"#define YYBYACC 1",