Skip to content
Permalink
Browse files

lib: os: ring_buffer: Fix C++ compilation warning

Fix warning when header file is included by C++ source file.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
  • Loading branch information...
nordic-krch authored and nashif committed Apr 24, 2019
1 parent 0bfd283 commit 291c06e1b435c52697484fa5c1cee4d75b1cf130
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/ring_buffer.h
@@ -148,7 +148,7 @@ static inline void ring_buf_init(struct ring_buf *buf, u32_t size, void *data)
{
memset(buf, 0, sizeof(struct ring_buf));
buf->size = size;
buf->buf.buf32 = data;
buf->buf.buf32 = (u32_t *)data;
if (is_power_of_two(size)) {
buf->mask = size - 1;
} else {

0 comments on commit 291c06e

Please sign in to comment.
You can’t perform that action at this time.