From c979c169a7defcb67232e2c2508dd787f12ec9da Mon Sep 17 00:00:00 2001 From: Chad David Date: Wed, 12 Feb 2003 18:03:55 +0000 Subject: [PATCH] Add __unused to the declaration of yyrcsid in a more portable way. Discussed with: alfred, bde, jmallett, obrien --- usr.bin/yacc/skeleton.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index 6beccf59df7d..f765c912f5c8 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -59,11 +59,14 @@ __FBSDID("$FreeBSD$"); const char *banner[] = { + "#include ", "#ifndef lint", + "#ifdef __unused", + "__unused", + "#endif", "static char const ", "yyrcsid[] = \"$FreeBSD$\";", "#endif", - "#include ", "#define YYBYACC 1", "#define YYMAJOR 1", "#define YYMINOR 9",