From 0283ff3e7267d5de73c77ca8a72a54e7f7f05887 Mon Sep 17 00:00:00 2001 From: pjd Date: Sun, 18 Dec 2011 20:41:58 +0000 Subject: Use lex's standard way of not generating unused function. Inspired by: r228555 MFC after: 1 week --- sbin/hastd/Makefile | 3 --- sbin/hastd/token.l | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sbin') 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; } -- cgit v1.1