Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2013 18:25:28 +0000 (UTC)
From:      Peter Wemm <peter@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252582 - in head/usr.bin: mkcsmapper mkesdb
Message-ID:  <201307031825.r63IPSuJ066859@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: peter
Date: Wed Jul  3 18:25:27 2013
New Revision: 252582
URL: http://svnweb.freebsd.org/changeset/base/252582

Log:
  Attempt to deal with a compile failure that shows up with gcc, which
  has -Werror on.  Without this, yylex() is inconsistently or redundantly
  defined.

Modified:
  head/usr.bin/mkcsmapper/lex.l
  head/usr.bin/mkesdb/lex.l

Modified: head/usr.bin/mkcsmapper/lex.l
==============================================================================
--- head/usr.bin/mkcsmapper/lex.l	Wed Jul  3 18:04:46 2013	(r252581)
+++ head/usr.bin/mkcsmapper/lex.l	Wed Jul  3 18:25:27 2013	(r252582)
@@ -41,6 +41,8 @@
 #include "ldef.h"
 #include "yacc.h"
 
+#define YY_DECL int yylex(void)
+
 int linenumber = 1;
 %}
 %option	noinput

Modified: head/usr.bin/mkesdb/lex.l
==============================================================================
--- head/usr.bin/mkesdb/lex.l	Wed Jul  3 18:04:46 2013	(r252581)
+++ head/usr.bin/mkesdb/lex.l	Wed Jul  3 18:25:27 2013	(r252582)
@@ -43,6 +43,8 @@
 #include "ldef.h"
 #include "yacc.h"
 
+#define YY_DECL int yylex(void)
+
 int linenumber = 1;
 %}
 %option	noinput



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