diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 22:16:27 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 22:16:27 +0000 |
commit | baf9f7519d1e1488271b64e3327b7798abb2444a (patch) | |
tree | 5eed726935132e465701656deaf68724a7ca4ecc /usr.sbin/ndiscvt | |
parent | 7dcb1394db98f314138bce48e95ab541a1891e38 (diff) | |
download | FreeBSD-src-baf9f7519d1e1488271b64e3327b7798abb2444a.zip FreeBSD-src-baf9f7519d1e1488271b64e3327b7798abb2444a.tar.gz |
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
Diffstat (limited to 'usr.sbin/ndiscvt')
-rw-r--r-- | usr.sbin/ndiscvt/Makefile | 1 | ||||
-rw-r--r-- | usr.sbin/ndiscvt/inf-token.l | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ndiscvt/Makefile b/usr.sbin/ndiscvt/Makefile index 90ecebb..b11b4b0 100644 --- a/usr.sbin/ndiscvt/Makefile +++ b/usr.sbin/ndiscvt/Makefile @@ -11,6 +11,7 @@ MAN= ndiscvt.8 MAN+= ndisgen.8 WARNS?= 4 +NO_WCAST_ALIGN= DPADD= ${LIBL} LDADD= -ll diff --git a/usr.sbin/ndiscvt/inf-token.l b/usr.sbin/ndiscvt/inf-token.l index cc1508b..1f290e1 100644 --- a/usr.sbin/ndiscvt/inf-token.l +++ b/usr.sbin/ndiscvt/inf-token.l @@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$"); int lineno = 1; #define YY_NO_UNPUT +#define YY_NO_INPUT int yylex(void); void yyerror(const char *); |