Skip to content

Commit 29128bf

Browse files
finikorgcarlescufi
authored andcommitted
lib: mpsc_pbuf: Fix compilation unused-but-set-variable warning
Use ARG_UNUSED() to fix compilation warnings. Signed-off-by: Andrei Emeltchenko <[email protected]>
1 parent 415b47c commit 29128bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/os/mpsc_pbuf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer,
4444

4545
err = k_sem_init(&buffer->sem, 0, 1);
4646
__ASSERT_NO_MSG(err == 0);
47+
ARG_UNUSED(err);
4748
}
4849

4950
static inline bool free_space(struct mpsc_pbuf_buffer *buffer, uint32_t *res)

0 commit comments

Comments
 (0)