aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorChad David <davidc@FreeBSD.org>2003-02-12 18:03:55 +0000
committerChad David <davidc@FreeBSD.org>2003-02-12 18:03:55 +0000
commitc979c169a7defcb67232e2c2508dd787f12ec9da (patch)
treed633ab5a6ba034428ef92ba87137bfea9504335b /usr.bin
parent96365d3dcf28d659361c7e55f446e55f4288b83a (diff)
downloadsrc-c979c169a7defcb67232e2c2508dd787f12ec9da.tar.gz
src-c979c169a7defcb67232e2c2508dd787f12ec9da.zip
Add __unused to the declaration of yyrcsid in a more portable way.
Discussed with: alfred, bde, jmallett, obrien
Notes
Notes: svn path=/head/; revision=110767
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/yacc/skeleton.c5
1 files changed, 4 insertions, 1 deletions
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 <stdlib.h>",
"#ifndef lint",
+ "#ifdef __unused",
+ "__unused",
+ "#endif",
"static char const ",
"yyrcsid[] = \"$FreeBSD$\";",
"#endif",
- "#include <stdlib.h>",
"#define YYBYACC 1",
"#define YYMAJOR 1",
"#define YYMINOR 9",