Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Mar 2014 21:56:13 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263948 - head/contrib/byacc
Message-ID:  <201403302156.s2ULuDCg098995@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Mar 30 21:56:13 2014
New Revision: 263948
URL: http://svnweb.freebsd.org/changeset/base/263948

Log:
  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

Modified:
  head/contrib/byacc/skeleton.c
Directory Properties:
  head/contrib/byacc/   (props changed)

Modified: head/contrib/byacc/skeleton.c
==============================================================================
--- head/contrib/byacc/skeleton.c	Sun Mar 30 21:48:49 2014	(r263947)
+++ head/contrib/byacc/skeleton.c	Sun Mar 30 21:56:13 2014	(r263948)
@@ -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),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403302156.s2ULuDCg098995>