From Coverity:
CID
1431050 (#1 of 1): Unchecked return value (CHECKED_RETURN)
1. check_return: Calling lttng_dynamic_buffer_set_size without
checking return value (as is done elsewhere 32 out of 40 times).
Solution
========
Since we are inside a the clear operation for the payload, ignore the
return value.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I45c1054de7252aab4b77f330102ff4f489f20a6d
LTTNG_HIDDEN
void lttng_payload_clear(struct lttng_payload *payload)
{
- lttng_dynamic_buffer_set_size(&payload->buffer, 0);
+ (void) lttng_dynamic_buffer_set_size(&payload->buffer, 0);
lttng_dynamic_pointer_array_clear(&payload->_fd_handles);
}