* \return True if all read operations performed on the input buffer so far have completed successfully,
* false if any error has occurred.
*/
-static inline bool packmsg_input_ok(const packmsg_input_t *buf) {
+static inline __attribute__((__warn_unused_result__)) bool packmsg_input_ok(const packmsg_input_t *buf) {
assert(buf);
return packmsg_likely(buf->len >= 0);
* false if there is still data remaining in the input buffer,
* or if any error has occurred.
*/
-static inline bool packmsg_done(const packmsg_input_t *buf) {
+static inline __attribute__((__warn_unused_result__)) bool packmsg_done(const packmsg_input_t *buf) {
assert(buf);
return buf->len == 0;