Skip to content

Commit

Permalink
use _ZP_UNUSED instead of (void)(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jun 27, 2024
1 parent 1bb55e5 commit 6c1cc65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/zenoh-pico/collections/element.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <stddef.h>

#include "zenoh-pico/system/platform.h"
#include "zenoh-pico/utils/result.h"

/*-------- element functions --------*/
typedef size_t (*z_element_size_f)(void *e);
Expand Down Expand Up @@ -62,13 +63,13 @@ static inline void _z_noop_clear(void *s) { (void)(s); }
static inline void _z_noop_free(void **s) { (void)(s); }

static inline void _z_noop_copy(void *dst, const void *src) {
(void)(dst);
(void)(src);
_ZP_UNUSED(dst);
_ZP_UNUSED(src);
}

static inline void _z_noop_move(void *dst, void *src) {
(void)(dst);
(void)(src);
_ZP_UNUSED(dst);
_ZP_UNUSED(src);
}

_Z_ELEM_DEFINE(_z_noop, _z_noop_t, _z_noop_size, _z_noop_clear, _z_noop_copy)
Expand Down

0 comments on commit 6c1cc65

Please sign in to comment.