summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-12-18 20:41:58 +0000
committerpjd <pjd@FreeBSD.org>2011-12-18 20:41:58 +0000
commit0283ff3e7267d5de73c77ca8a72a54e7f7f05887 (patch)
tree3b2ee794f1c7d9b1c45093d3df2355aded5263d7 /sbin/hastd
parent509e6459e0462bc34760d1fc87737c7e149ae0af (diff)
downloadFreeBSD-src-0283ff3e7267d5de73c77ca8a72a54e7f7f05887.zip
FreeBSD-src-0283ff3e7267d5de73c77ca8a72a54e7f7f05887.tar.gz
Use lex's standard way of not generating unused function.
Inspired by: r228555 MFC after: 1 week
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/Makefile3
-rw-r--r--sbin/hastd/token.l3
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile
index 3c4eef1..d22e389 100644
--- a/sbin/hastd/Makefile
+++ b/sbin/hastd/Makefile
@@ -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
diff --git a/sbin/hastd/token.l b/sbin/hastd/token.l
index 0d15075..35889c2 100644
--- a/sbin/hastd/token.l
+++ b/sbin/hastd/token.l
@@ -44,6 +44,9 @@ int lineno;
#define DP do { } while (0)
%}
+%option noinput
+%option nounput
+
%%
control { DP; return CONTROL; }
pidfile { DP; return PIDFILE; }
OpenPOWER on IntegriCloud