File: 07-fix-16.patch

package info (click to toggle)
mcpp 2.7.2-5.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,440 kB
  • sloc: ansic: 35,245; sh: 9,241; makefile: 116; cpp: 84; exp: 18
file content (22 lines) | stat: -rw-r--r-- 929 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Origin: https://github.com/jbrandwood/mcpp/commit/3b274fe8f31d61996343b17402f30408a6e447cf
From: John Brandwood <john.brandwood@telzey.com>
Date: Fri, 15 Mar 2024 15:15:53 -0400
Subject: 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     */