From 676affd2e411a1879cc5b440f46e6f077e28fcd2 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Fri, 5 Jun 2020 13:20:14 +0200 Subject: scripts/dtc: Remove duplicate definitions of yylloc With GCC 10 there is an error during compiling of our downstream branch. Removing multiple yylloc definitions help. Signed-off-by: Philippe Schenker --- scripts/dtc/dtc-lexer.lex.c_shipped | 1 - scripts/dtc/dtc-parser.tab.c_shipped | 1 - 2 files changed, 2 deletions(-) diff --git a/scripts/dtc/dtc-lexer.lex.c_shipped b/scripts/dtc/dtc-lexer.lex.c_shipped index 64c243772398..9db3a409c507 100644 --- a/scripts/dtc/dtc-lexer.lex.c_shipped +++ b/scripts/dtc/dtc-lexer.lex.c_shipped @@ -631,7 +631,6 @@ char *yytext; #include "srcpos.h" #include "dtc-parser.tab.h" -YYLTYPE yylloc; extern bool treesource_error; /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ diff --git a/scripts/dtc/dtc-parser.tab.c_shipped b/scripts/dtc/dtc-parser.tab.c_shipped index 0a7a5ed86f04..3da549814dc2 100644 --- a/scripts/dtc/dtc-parser.tab.c_shipped +++ b/scripts/dtc/dtc-parser.tab.c_shipped @@ -190,7 +190,6 @@ struct YYLTYPE extern YYSTYPE yylval; -extern YYLTYPE yylloc; int yyparse (void); #endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */ -- cgit v1.2.3