Skip to content

Commit a6ab705

Browse files
rsalvaterrarobimarko
authored andcommitted
linux-atm: fix building with GCC 15.1
Add a patch in order to fix it. Signed-off-by: Rui Salvaterra <[email protected]> Link: openwrt/openwrt#18600 Signed-off-by: Robert Marko <[email protected]>
1 parent cc80fbb commit a6ab705

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--- a/src/lane/load.c
2+
+++ b/src/lane/load.c
3+
@@ -498,8 +498,8 @@ load_vars(const char *file)
4+
break;
5+
case BOOLEAN:
6+
Debug_unit(&load_unit, "Variable is boolean: %s",
7+
- g_return.bool==BL_TRUE?"True":"False");
8+
- set_var_bool(curr_unit, varname, g_return.bool);
9+
+ g_return.boolean==BL_TRUE?"True":"False");
10+
+ set_var_bool(curr_unit, varname, g_return.boolean);
11+
break;
12+
case INTEGER:
13+
Debug_unit(&load_unit, "Variable is integer: %d", g_return.intti);
14+
--- a/src/lane/load_lex.h
15+
+++ b/src/lane/load_lex.h
16+
@@ -24,7 +24,7 @@
17+
#define END 0
18+
19+
typedef struct {
20+
- Bool_t bool;
21+
+ Bool_t boolean;
22+
int intti;
23+
AtmAddr_t *atmaddress;
24+
LaneDestination_t *destaddr;
25+
--- a/src/lane/load_lex.l
26+
+++ b/src/lane/load_lex.l
27+
@@ -44,11 +44,11 @@ H [0-9a-fA-F]
28+
return ATMADDRESS;
29+
}
30+
True |
31+
-true {g_return.bool = BL_TRUE;
32+
+true {g_return.boolean = BL_TRUE;
33+
return BOOLEAN;
34+
}
35+
False |
36+
-false {g_return.bool = BL_FALSE;
37+
+false {g_return.boolean = BL_FALSE;
38+
return BOOLEAN;
39+
}
40+
\#.* {}

0 commit comments

Comments
 (0)