aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorDmitry Gorbachev <d.g.gorbachev@gmail.com>2014-03-12 10:56:17 +0000
committerNick Clifton <nickc@redhat.com>2014-03-12 10:56:17 +0000
commitc63043aae739e147ad1da015d48ecceeb8b3fef9 (patch)
treed44393b7423e7798f6d6ce6d320a2a566e3dc923 /binutils
parentfa47fa924667f5d668faf24412dea39150e14a2a (diff)
downloadgdb-c63043aae739e147ad1da015d48ecceeb8b3fef9.zip
gdb-c63043aae739e147ad1da015d48ecceeb8b3fef9.tar.gz
gdb-c63043aae739e147ad1da015d48ecceeb8b3fef9.tar.bz2
Fix compile time warnings about unused variables 'yyinput' and 'input'.
PR binutils/16567 * deflex.l: Add noinput and nounput options.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/deflex.l4
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 4a87080..21ac1e5 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-12 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
+
+ PR binutils/16567
+ * deflex.l: Add noinput and nounput options.
+
2014-03-12 Alan Modra <amodra@gmail.com>
* Makefile.in: Regenerate.
diff --git a/binutils/deflex.l b/binutils/deflex.l
index a5e3448..0a9a0d9 100644
--- a/binutils/deflex.l
+++ b/binutils/deflex.l
@@ -1,3 +1,5 @@
+%option noinput nounput
+
%{/* deflex.l - Lexer for .def files */
/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
@@ -27,8 +29,6 @@
#include "defparse.h"
#include "dlltool.h"
-#define YY_NO_UNPUT
-
int linenumber;
%}