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
@ -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…
x
Reference in New Issue
Block a user