From 8a605b3f64d6f98fc5013b8b0156d6a4e35c51b4 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sun, 18 Dec 2011 20:41:58 +0000 Subject: [PATCH] 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(-) diff --git a/sbin/hastd/Makefile b/sbin/hastd/Makefile index 3c4eef18da4a..d22e389df4bc 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 0d1507563eed..35889c2c71fc 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; }