Use lex's standard way of not generating unused function.
Inspired by: r228555 MFC after: 1 week
This commit is contained in:
parent
b6afd24f2b
commit
8a605b3f64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228696
@ -27,9 +27,6 @@ CFLAGS+=-DINET
|
|||||||
.if ${MK_INET6_SUPPORT} != "no"
|
.if ${MK_INET6_SUPPORT} != "no"
|
||||||
CFLAGS+=-DINET6
|
CFLAGS+=-DINET6
|
||||||
.endif
|
.endif
|
||||||
# This is needed to have WARNS > 1.
|
|
||||||
CFLAGS+=-DYY_NO_UNPUT
|
|
||||||
CFLAGS+=-DYY_NO_INPUT
|
|
||||||
|
|
||||||
DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
|
DPADD= ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBL} ${LIBPTHREAD} ${LIBUTIL}
|
||||||
LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil
|
LDADD= -lgeom -lbsdxml -lsbuf -ll -lpthread -lutil
|
||||||
|
@ -44,6 +44,9 @@ int lineno;
|
|||||||
#define DP do { } while (0)
|
#define DP do { } while (0)
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%option noinput
|
||||||
|
%option nounput
|
||||||
|
|
||||||
%%
|
%%
|
||||||
control { DP; return CONTROL; }
|
control { DP; return CONTROL; }
|
||||||
pidfile { DP; return PIDFILE; }
|
pidfile { DP; return PIDFILE; }
|
||||||
|
Loading…
Reference in New Issue
Block a user