PR27861, Infinite loop in dwarf.c:7507-7526
[binutils-gdb.git] / binutils / arlex.l
index b5b12d1d88195ad09610896c0ff8c07dfd18400e..08c23072af14d32793d6efc716a977f41f373b84 100644 (file)
@@ -1,9 +1,9 @@
-%option noinput nounput
+%option noinput nounput noyywrap
 
 %{
 /* arlex.l - Strange script language lexer */
 
-/* Copyright (C) 1992-2017 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2021 Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
 
@@ -88,7 +88,3 @@ int linenumber;
 "\n"            { linenumber ++; return NEWLINE; }
 
 %%
-#ifndef yywrap
-/* Needed for lex, though not flex. */
-int yywrap(void) { return 1; }
-#endif