From 98fb85957e377b637e555ad369179c22fff24582 Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Mon, 8 Jun 2020 18:23:08 +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 011bb9632f..79952cd3ca 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 aea514fa69..78201acd5d 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