Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jan 2012 23:08:20 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229228 - stable/9/usr.sbin/ndiscvt
Message-ID:  <201201012308.q01N8KtL035668@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



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