summaryrefslogtreecommitdiffstats
path: root/usr.bin/ar
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
committersjg <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
commit62bb1062226d3ce6a2350808256a25508978352d (patch)
tree22b131dceb13c3df96da594fbaadb693504797c7 /usr.bin/ar
parent72ab90509b3a51ab361bf710338f2ef44a4e360d (diff)
parent04932445481c2cb89ff69a83b961bdef3d64757e (diff)
downloadFreeBSD-src-62bb1062226d3ce6a2350808256a25508978352d.zip
FreeBSD-src-62bb1062226d3ce6a2350808256a25508978352d.tar.gz
Merge from head
Diffstat (limited to 'usr.bin/ar')
-rw-r--r--usr.bin/ar/Makefile2
-rw-r--r--usr.bin/ar/acplex.l6
2 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile
index fa25072..03d9814 100644
--- a/usr.bin/ar/Makefile
+++ b/usr.bin/ar/Makefile
@@ -8,6 +8,8 @@ SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h
DPADD= ${LIBARCHIVE} ${LIBELF} ${LIBZ}
LDADD= -larchive -lelf -lz
+NO_WMISSING_VARIABLE_DECLARATIONS=
+
CFLAGS+=-I. -I${.CURDIR}
.if ${MK_SHARED_TOOLCHAIN} == "no"
diff --git a/usr.bin/ar/acplex.l b/usr.bin/ar/acplex.l
index 0acf5b7..589888e 100644
--- a/usr.bin/ar/acplex.l
+++ b/usr.bin/ar/acplex.l
@@ -36,14 +36,16 @@ __FBSDID("$FreeBSD$");
#include "y.tab.h"
-#define YY_NO_UNPUT
-#define YY_NO_INPUT
int lineno = 1;
int yylex(void);
+#define YY_DECL int yylex(void)
+
%}
+%option nounput
+%option noinput
%option noyywrap
%%
OpenPOWER on IntegriCloud