summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordm <dm@openbsd.org>1998-11-17 06:13:43 +0000
committerdm <dm@openbsd.org>1998-11-17 06:13:43 +0000
commit81ed2b87bd94b02b8dae367c1993f91c92ae227c (patch)
tree9a4933dfa4fb1ebf2ad2860c1b3819c8775fb291
parentAdd adw device driver, from NetBSD. (diff)
downloadwireguard-openbsd-81ed2b87bd94b02b8dae367c1993f91c92ae227c.tar.xz
wireguard-openbsd-81ed2b87bd94b02b8dae367c1993f91c92ae227c.zip
add __attribute__ ((unused)) to the yyrcsid under GCC 2
-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",