Skip to content

Commit 60e8510

Browse files
committed
nrf_rpc: Declare packet_validate as unused
Since the NRF_RPC_ASSERT macros is not enabled, clang complains about the function being unused. Signed-off-by: Carles Cufi <[email protected]>
1 parent 5295d69 commit 60e8510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nrf_rpc/nrf_rpc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int group_init_send(const struct nrf_rpc_group *group)
363363
return send(group, tx_buf, NRF_RPC_HEADER_SIZE + len);
364364
}
365365

366-
static inline bool packet_validate(const uint8_t *packet)
366+
static inline __attribute__((unused)) bool packet_validate(const uint8_t *packet)
367367
{
368368
uintptr_t addr = (uintptr_t)packet;
369369
/* Checking NULL may be sometimes not enough, because pointer can be

0 commit comments

Comments
 (0)