0001-Remove-redundant-YYLOC-global-declaration.patch 847 B

12345678910111213141516171819202122232425262728
  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. Same as the upstream fix for building dtc with gcc 10.
  6. Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
  7. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
  8. ---
  9. scripts/dtc/dtc-lexer.l | 1 -
  10. 1 file changed, 1 deletion(-)
  11. diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
  12. index fd825ebba6..24af549977 100644
  13. --- a/scripts/dtc/dtc-lexer.l
  14. +++ b/scripts/dtc/dtc-lexer.l
  15. @@ -38,7 +38,6 @@ LINECOMMENT "//".*\n
  16. #include "srcpos.h"
  17. #include "dtc-parser.tab.h"
  18. -YYLTYPE yylloc;
  19. extern bool treesource_error;
  20. /* CAUTION: this will stop working if we ever use yyless() or yyunput() */
  21. --
  22. 2.20.1