Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 22:16:27 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228665 - head/usr.sbin/ndiscvt
Message-ID:  <201112172216.pBHMGRe5078984@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 17 22:16:27 2011
New Revision: 228665
URL: http://svn.freebsd.org/changeset/base/228665

Log:
  Use NO_WCAST_ALIGN for usr.sbin/ndiscvt; because this is only built for
  x86, any alignment warnings can be safely ignored.  Define YY_NO_INPUT
  in usr.sbin/ndiscvt/inf-token.l, so no unused lex functions are defined.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/ndiscvt/Makefile
  head/usr.sbin/ndiscvt/inf-token.l

Modified: head/usr.sbin/ndiscvt/Makefile
==============================================================================
--- head/usr.sbin/ndiscvt/Makefile	Sat Dec 17 22:05:28 2011	(r228664)
+++ head/usr.sbin/ndiscvt/Makefile	Sat Dec 17 22:16:27 2011	(r228665)
@@ -11,6 +11,7 @@ MAN=	ndiscvt.8
 MAN+=	ndisgen.8
 
 WARNS?=	4
+NO_WCAST_ALIGN=
 
 DPADD=  ${LIBL}
 LDADD=  -ll

Modified: head/usr.sbin/ndiscvt/inf-token.l
==============================================================================
--- head/usr.sbin/ndiscvt/inf-token.l	Sat Dec 17 22:05:28 2011	(r228664)
+++ head/usr.sbin/ndiscvt/inf-token.l	Sat Dec 17 22:16:27 2011	(r228665)
@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
 
 int lineno = 1;
 #define YY_NO_UNPUT
+#define YY_NO_INPUT
 
 int yylex(void);
 void yyerror(const char *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112172216.pBHMGRe5078984>