Remove redundant YYLOC global declaration generic
authorPeter Robinson <pbrobinson@gmail.com>
Thu, 30 Jan 2020 09:37:15 +0000 (09:37 +0000)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Dec 2022 10:36:05 +0000 (11:36 +0100)
Same as the upstream fix for building dtc with gcc 10.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
(cherry picked from commit 018921ee79d3f30893614b3b2b63b588d8544f73)

scripts/dtc/dtc-lexer.l

index fd825ebba69cb25e160e057f53bef994970093fc..24af549977584c33b302a470fe90fd9b42e6539d 100644 (file)
@@ -38,7 +38,6 @@ LINECOMMENT   "//".*\n
 #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() */