aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ar
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-09-05 20:18:59 +0000
commitd1d015864103b253b3fcb2f72a0da5b0cfeb31b6 (patch)
tree22b131dceb13c3df96da594fbaadb693504797c7 /usr.bin/ar
parent12d4083451fc39b3e831d4ea0bfa67d3b32cfb54 (diff)
parentb6f49c23a36f329cbf1e7f28078e17fd87f0e245 (diff)
Notes
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 fa250720ebfe..03d9814c1018 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 0acf5b79d13b..589888e6dc06 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
%%