lib: mpsc_pbuf: Fix compilation unused-but-set-variable warning
Use ARG_UNUSED() to fix compilation warnings. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
415b47c4ac
commit
29128bfa02
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ void mpsc_pbuf_init(struct mpsc_pbuf_buffer *buffer,
|
|||
|
||||
err = k_sem_init(&buffer->sem, 0, 1);
|
||||
__ASSERT_NO_MSG(err == 0);
|
||||
ARG_UNUSED(err);
|
||||
}
|
||||
|
||||
static inline bool free_space(struct mpsc_pbuf_buffer *buffer, uint32_t *res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue