1From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001 2From: Peter Robinson <pbrobinson@gmail.com> 3Date: Thu, 30 Jan 2020 09:37:15 +0000 4Subject: [PATCH] Remove redundant YYLOC global declaration 5 6Same as the upstream fix for building dtc with gcc 10. 7 8Signed-off-by: Peter Robinson <pbrobinson@gmail.com> 9Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 10--- 11 scripts/dtc/dtc-lexer.l | 1 - 12 1 file changed, 1 deletion(-) 13 14diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l 15index fd825ebba6..24af549977 100644 16--- a/scripts/dtc/dtc-lexer.l 17+++ b/scripts/dtc/dtc-lexer.l 18@@ -38,7 +38,6 @@ LINECOMMENT "//".*\n 19 #include "srcpos.h" 20 #include "dtc-parser.tab.h" 21 22-YYLTYPE yylloc; 23 extern bool treesource_error; 24 25 /* CAUTION: this will stop working if we ever use yyless() or yyunput() */ 26-- 272.20.1 28 29