svn commit: r229228 - stable/9/usr.sbin/ndiscvt

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 23:08:20 UTC 2012


Author: dim
Date: Sun Jan  1 23:08:19 2012
New Revision: 229228
URL: http://svn.freebsd.org/changeset/base/229228

Log:
  MFC r228665:
  
  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.

Modified:
  stable/9/usr.sbin/ndiscvt/Makefile
  stable/9/usr.sbin/ndiscvt/inf-token.l
Directory Properties:
  stable/9/usr.sbin/ndiscvt/   (props changed)

Modified: stable/9/usr.sbin/ndiscvt/Makefile
==============================================================================
--- stable/9/usr.sbin/ndiscvt/Makefile	Sun Jan  1 23:07:13 2012	(r229227)
+++ stable/9/usr.sbin/ndiscvt/Makefile	Sun Jan  1 23:08:19 2012	(r229228)
@@ -11,6 +11,7 @@ MAN=	ndiscvt.8
 MAN+=	ndisgen.8
 
 WARNS?=	4
+NO_WCAST_ALIGN=
 
 DPADD=  ${LIBL}
 LDADD=  -ll

Modified: stable/9/usr.sbin/ndiscvt/inf-token.l
==============================================================================
--- stable/9/usr.sbin/ndiscvt/inf-token.l	Sun Jan  1 23:07:13 2012	(r229227)
+++ stable/9/usr.sbin/ndiscvt/inf-token.l	Sun Jan  1 23:08:19 2012	(r229228)
@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
 
 int lineno = 1;
 #define YY_NO_UNPUT
+#define YY_NO_INPUT
 
 int yylex(void);
 void yyerror(const char *);


More information about the svn-src-all mailing list