Commit 779492f
committed
Qt: fix compile error when ODR check enabled.
when two structs with the same name, the linker many be confused. when LTO
is enabled, ODR checked is required.
```
parallel_chip_info.cpp:36:3: error: type ‘struct Conf’ violates the C++ One Definition Rule [-Werror=odr]
36 | } Conf;
| ^
spi_chip_info.cpp:20:3: note: a different type is defined in another translation unit
20 | } Conf;
```
Signed-off-by: Sasasu <i@sasa.su>1 parent 20a5494 commit 779492f
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments