aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-03-30 21:48:49 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-03-30 21:48:49 +0000
commite0ae66db632ac7c7773c8b85754bfc135f5bdbd5 (patch)
treee125a922b3c7abf691bdaade52480d43f6141f21
parent88deb182c9a4d68ca0007518fb97e95668b156fe (diff)
downloadsrc-e0ae66db632ac7c7773c8b85754bfc135f5bdbd5.tar.gz
src-e0ae66db632ac7c7773c8b85754bfc135f5bdbd5.zip
Convert an unused banner from skeleton.c into a comment.
It is added to every generated files and fix build at certain warning level with clang 3.4 Submitted by: Thomas Dickey <dickey@his.com> (byacc upstream) Spotted by: glebius
Notes
Notes: svn path=/vendor/byacc/dist/; revision=263947
-rw-r--r--skeleton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/skeleton.c b/skeleton.c
index 7305b58d8394..efbeb0317931 100644
--- a/skeleton.c
+++ b/skeleton.c
@@ -16,9 +16,9 @@
const char *const banner[] =
{
- "#ifndef lint",
- "static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";",
- "#endif",
+ "/* original parser id follows */",
+ "/* yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\" */",
+ "/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */",
"",
"#define YYBYACC 1",
CONCAT1("#define YYMAJOR ", YYMAJOR),