Commit 3387655
tests: kernel: use {} to initialize test work_q structs
LLVM seems to be unhappy with the {0} initialization of structs with a
deprecated element. Zero out the struct with just {}, seems to make it
happier.
Error was:
start_stop.c:28:28: error: 'thread' is deprecated
28 | struct k_work_q work_q = {0};
Tested with:
west build -p -b native_sim/native \
tests/kernel/workq/work_queue/ \
-DZEPHYR_TOOLCHAIN_VARIANT=host/llvm
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>1 parent 1c6a323 commit 3387655
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments