[arch-commits] Commit in nsjail/trunk (1 file)

Bruno Pagani archange at gemini.archlinux.org
Wed Apr 6 18:41:30 UTC 2022


    Date: Wednesday, April 6, 2022 @ 18:41:30
  Author: archange
Revision: 1181622

Remove obsolete patch

Deleted:
  nsjail/trunk/replace-YYUSE-with-attribute-unused-in-src-parser.y.patch

-----------------------------------------------------------+
 replace-YYUSE-with-attribute-unused-in-src-parser.y.patch |   33 ------------
 1 file changed, 33 deletions(-)

Deleted: replace-YYUSE-with-attribute-unused-in-src-parser.y.patch
===================================================================
--- replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	2022-04-06 18:39:58 UTC (rev 1181621)
+++ replace-YYUSE-with-attribute-unused-in-src-parser.y.patch	2022-04-06 18:41:30 UTC (rev 1181622)
@@ -1,33 +0,0 @@
-From 521aab466e50f822298ae7bf817b14c1b9eaab74 Mon Sep 17 00:00:00 2001
-From: Evangelos Foutras <evangelos at foutrelis.com>
-Date: Sun, 14 Mar 2021 03:20:43 +0200
-Subject: [PATCH] Replace YYUSE with attribute unused in src/parser.y
-
-The YYUSE macro was renamed to YY_USE in bison 3.7.5; might as well
-avoid using it altogether, and instead mark the variable as unused.
-
-Fixes the following linker error:
-
-/usr/bin/ld: kafel/libkafel.a(libkafel.o): in function `kafel_yyerror':
-arm_syscalls.c:(.text+0x6984): undefined reference to `YYUSE'
----
- src/parser.y | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/src/parser.y b/src/parser.y
-index e0f109c..e5980c9 100644
---- a/src/parser.y
-+++ b/src/parser.y
-@@ -418,10 +418,9 @@ const_def
- 
- %%
- 
--void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt, yyscan_t scanner,
--             const char *msg) {
-+void yyerror(YYLTYPE * loc, struct kafel_ctxt* ctxt,
-+             __attribute__((unused)) yyscan_t scanner, const char *msg) {
-   if (!ctxt->lexical_error) {
--    YYUSE(scanner);
-     if (loc->filename != NULL) {
-       append_error(ctxt, "%s:%d:%d: %s", loc->filename, loc->first_line, loc->first_column, msg);
-     } else {



More information about the arch-commits mailing list