From b055631694967585d0c898ac493e1faa3d5e8ee6 Mon Sep 17 00:00:00 2001 From: Dilan Palauzov Date: Wed, 4 Jan 2017 16:05:22 +0000 Subject: Use noyywrap option in lex files. ld PR 20958 * ldlex.l (option): Add noyywrap (yywrap): Delete. * ldlex.h (yywrap): Delete prototype. binutils PR 20958 * syslex.l (option): Add noyywrap (yywrap): Delete. --- binutils/syslex.l | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'binutils/syslex.l') diff --git a/binutils/syslex.l b/binutils/syslex.l index 86cb17d..7fcc714 100644 --- a/binutils/syslex.l +++ b/binutils/syslex.l @@ -1,4 +1,4 @@ -%option noinput nounput +%option noinput nounput noyywrap %{ /* Copyright (C) 2001-2017 Free Software Foundation, Inc. @@ -36,10 +36,6 @@ #define YY_NO_UNPUT #endif -#ifndef yywrap -static int yywrap (void) { return 1; } -#endif - extern int yylex (void); %} %% -- cgit v1.1