mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
mcpp: fix build with gcc14
This commit is contained in:
parent
5de332500d
commit
d545ee7ff5
1 changed files with 25 additions and 0 deletions
25
srcpkgs/mcpp/patches/gcc14.patch
Normal file
25
srcpkgs/mcpp/patches/gcc14.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
From 3b274fe8f31d61996343b17402f30408a6e447cf Mon Sep 17 00:00:00 2001
|
||||
From: John Brandwood <john.brandwood@telzey.com>
|
||||
Date: Fri, 15 Mar 2024 15:15:53 -0400
|
||||
Subject: [PATCH] Fix build with GCC 14.x by splitting a NULL assignment into 2
|
||||
lines.
|
||||
|
||||
---
|
||||
src/expand.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/expand.c b/src/expand.c
|
||||
index 08f829a..ea2d2a9 100644
|
||||
--- a/src/expand.c
|
||||
+++ b/src/expand.c
|
||||
@@ -710,7 +710,8 @@ static char * replace(
|
||||
} else {
|
||||
m_inf->locs.start_col = m_inf->locs.start_line = 0L;
|
||||
}
|
||||
- m_inf->args = m_inf->loc_args = NULL; /* Default args */
|
||||
+ m_inf->args = NULL; /* Default args */
|
||||
+ m_inf->loc_args = NULL;
|
||||
for (num = 1, recurs = 0; num < m_num; num++)
|
||||
if (mac_inf[ num].defp == defp)
|
||||
recurs++; /* Recursively nested macro */
|
||||
|
Loading…
Add table
Reference in a new issue