librecmc : Bump to v1.5.15
[librecmc/librecmc.git] / package / boot / uboot-sunxi / patches / 001-yylloc-redefinition.patch
1 From 018921ee79d3f30893614b3b2b63b588d8544f73 Mon Sep 17 00:00:00 2001
2 From: Peter Robinson <pbrobinson@gmail.com>
3 Date: Thu, 30 Jan 2020 09:37:15 +0000
4 Subject: [PATCH] Remove redundant YYLOC global declaration
5
6 Same as the upstream fix for building dtc with gcc 10.
7
8 Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
9 Origin: upstream, https://github.com/u-boot/u-boot/commit/018921ee79d3f30893614b3b2b63b588d8544f73
10 ---
11  scripts/dtc/dtc-lexer.l | 1 -
12  1 file changed, 1 deletion(-)
13
14 --- a/scripts/dtc/dtc-lexer.l
15 +++ b/scripts/dtc/dtc-lexer.l
16 @@ -38,7 +38,6 @@ LINECOMMENT   "//".*\n
17  #include "srcpos.h"
18  #include "dtc-parser.tab.h"
19  
20 -YYLTYPE yylloc;
21  extern bool treesource_error;
22  
23  /* CAUTION: this will stop working if we ever use yyless() or yyunput() */