[openwrt/openwrt] linux-atm: fix building with GCC 15.1
LEDE Commits
lede-commits at lists.infradead.org
Sun Jun 8 03:20:23 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/a6ab705ab8386fbcfb937ec35d8c8c2618f33da1
commit a6ab705ab8386fbcfb937ec35d8c8c2618f33da1
Author: Rui Salvaterra <rsalvaterra at gmail.com>
AuthorDate: Sat Apr 26 11:44:08 2025 +0100
linux-atm: fix building with GCC 15.1
Add a patch in order to fix it.
Signed-off-by: Rui Salvaterra <rsalvaterra at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18600
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
.../linux-atm/patches/701-fix-gcc15-build.patch | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/package/network/utils/linux-atm/patches/701-fix-gcc15-build.patch b/package/network/utils/linux-atm/patches/701-fix-gcc15-build.patch
new file mode 100644
index 0000000000..18ad8ad6fa
--- /dev/null
+++ b/package/network/utils/linux-atm/patches/701-fix-gcc15-build.patch
@@ -0,0 +1,40 @@
+--- a/src/lane/load.c
++++ b/src/lane/load.c
+@@ -498,8 +498,8 @@ load_vars(const char *file)
+ break;
+ case BOOLEAN:
+ Debug_unit(&load_unit, "Variable is boolean: %s",
+- g_return.bool==BL_TRUE?"True":"False");
+- set_var_bool(curr_unit, varname, g_return.bool);
++ g_return.boolean==BL_TRUE?"True":"False");
++ set_var_bool(curr_unit, varname, g_return.boolean);
+ break;
+ case INTEGER:
+ Debug_unit(&load_unit, "Variable is integer: %d", g_return.intti);
+--- a/src/lane/load_lex.h
++++ b/src/lane/load_lex.h
+@@ -24,7 +24,7 @@
+ #define END 0
+
+ typedef struct {
+- Bool_t bool;
++ Bool_t boolean;
+ int intti;
+ AtmAddr_t *atmaddress;
+ LaneDestination_t *destaddr;
+--- a/src/lane/load_lex.l
++++ b/src/lane/load_lex.l
+@@ -44,11 +44,11 @@ H [0-9a-fA-F]
+ return ATMADDRESS;
+ }
+ True |
+-true {g_return.bool = BL_TRUE;
++true {g_return.boolean = BL_TRUE;
+ return BOOLEAN;
+ }
+ False |
+-false {g_return.bool = BL_FALSE;
++false {g_return.boolean = BL_FALSE;
+ return BOOLEAN;
+ }
+ \#.* {}
More information about the lede-commits
mailing list