Commit 2a1f7f0
committed
fix: transport: unicast: unused function warning
When compiling zenoh-pico with Z_FEATURE_MULTI_THREAD and
Z_FEATURE_UNICAST_TRANSPORT enabled, while leaving
Z_FEATURE_UNICAST_PEER disabled, the `_zp_unicast_process_peer_event`
function will be defined but unused.
Only compile the function, alongside its own additional helpers, if
Z_FEATURE_UNICAST_PEER is enabled.
Signed-off-by: Emil Dahl Juhl <[email protected]>1 parent dcf3085 commit 2a1f7f0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
323 | 324 | | |
324 | 325 | | |
325 | 326 | | |
| 327 | + | |
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| |||
0 commit comments