Andrew Geissler | c60845c | 2021-01-29 15:55:05 -0600 | [diff] [blame^] | 1 | From 8127b19aa42ccfb3faae1173a12b3eb0cebf8941 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 | State: upstream (e33a814e772cdc36436c8c188d8c42d019fda639) |
| 10 | --- |
| 11 | scripts/dtc/dtc-lexer.l | 1 - |
| 12 | 1 file changed, 1 deletion(-) |
| 13 | |
| 14 | diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l |
| 15 | index 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 | -- |
| 27 | 2.29.2 |
| 28 | |