diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2020-06-05 13:20:14 +0200 |
---|---|---|
committer | Philippe Schenker <philippe.schenker@toradex.com> | 2020-06-05 13:30:54 +0200 |
commit | 676affd2e411a1879cc5b440f46e6f077e28fcd2 (patch) | |
tree | 0b6b998bef7ec28a4327fe5da1ea2511bd2790cc | |
parent | 88c001354a157df0e8fd8d0e952c14c985100ca2 (diff) |
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 <philippe.schenker@toradex.com>
-rw-r--r-- | scripts/dtc/dtc-lexer.lex.c_shipped | 1 | ||||
-rw-r--r-- | scripts/dtc/dtc-parser.tab.c_shipped | 1 |
2 files changed, 0 insertions, 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 */ |