https://sourceware.org/bugzilla/show_bug.cgi?id=16567
Bug ID: 16567
Summary: Compilation warnings in DllTool
Product: binutils
Version: 2.25 (HEAD)
Status: NEW
Severity: enhancement
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: d.g.gorbachev at gmail dot com
There are GCC warnings when building Binutils with some compiler options.
deflex.c:1429:17: warning: 'yyunput' defined but not used [-Wunused-function]
deflex.c:1470:16: warning: 'input' defined but not used [-Wunused-function]
It can be fixed just like in other *.l files:
--- binutils/deflex.l
+++ binutils/deflex.l
@@ -1,3 +1,5 @@
+%option noinput nounput
+
%{/* deflex.l - Lexer for .def files */
/* Copyright 1995, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2007
@@ -28,8 +30,6 @@
#include "defparse.h"
#include "dlltool.h"
-#define YY_NO_UNPUT
-
int linenumber;
%}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils