Author: pjd Date: Sun Dec 18 20:41:58 2011 New Revision: 228696 URL: http://svn.freebsd.org/changeset/base/228696
Log: Use lex's standard way of not generating unused function. Inspired by: r228555 MFC after: 1 week Modified: head/sbin/hastd/Makefile head/sbin/hastd/token.l Modified: head/sbin/hastd/Makefile ============================================================================== --- head/sbin/hastd/Makefile Sun Dec 18 20:40:19 2011 (r228695) +++ head/sbin/hastd/Makefile Sun Dec 18 20:41:58 2011 (r228696) @@ -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 Modified: head/sbin/hastd/token.l ============================================================================== --- head/sbin/hastd/token.l Sun Dec 18 20:40:19 2011 (r228695) +++ head/sbin/hastd/token.l Sun Dec 18 20:41:58 2011 (r228696) @@ -44,6 +44,9 @@ int lineno; #define DP do { } while (0) %} +%option noinput +%option nounput + %% control { DP; return CONTROL; } pidfile { DP; return PIDFILE; } _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"