Use lex's standard way of not generating unused function.

Inspired by:	r228555
MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2011-12-18 20:41:58 +00:00
parent b6afd24f2b
commit 8a605b3f64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228696
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -44,6 +44,9 @@ int lineno;
#define DP do { } while (0)
%}
%option noinput
%option nounput
%%
control { DP; return CONTROL; }
pidfile { DP; return PIDFILE; }