Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 2011 20:41:58 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228696 - head/sbin/hastd
Message-ID:  <201112182041.pBIKfwBs024603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Dec 18 20:41:58 2011
New Revision: 228696
URL: http://svn.freebsd.org/changeset/base/228696

Log:
  Use lex's standard way of not generating unused function.
  
  Inspired by:	r228555
  MFC after:	1 week

Modified:
  head/sbin/hastd/Makefile
  head/sbin/hastd/token.l

Modified: head/sbin/hastd/Makefile
==============================================================================
--- head/sbin/hastd/Makefile	Sun Dec 18 20:40:19 2011	(r228695)
+++ head/sbin/hastd/Makefile	Sun Dec 18 20:41:58 2011	(r228696)
@@ -27,9 +27,6 @@ CFLAGS+=-DINET
 .if ${MK_INET6_SUPPORT} != "no"
 CFLAGS+=-DINET6
 .endif
-# This is needed to have WARNS > 1.
-CFLAGS+=-DYY_NO_UNPUT
-CFLAGS+=-DYY_NO_INPUT
 
 DPADD=	${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
 LDADD=	-lgeom -lbsdxml -lsbuf -ll -lpthread -lutil

Modified: head/sbin/hastd/token.l
==============================================================================
--- head/sbin/hastd/token.l	Sun Dec 18 20:40:19 2011	(r228695)
+++ head/sbin/hastd/token.l	Sun Dec 18 20:41:58 2011	(r228696)
@@ -44,6 +44,9 @@ int lineno;
 #define	DP	do { } while (0)
 %}
 
+%option noinput
+%option nounput
+
 %%
 control			{ DP; return CONTROL; }
 pidfile			{ DP; return PIDFILE; }



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