Skip to content

Commit

Permalink
all the try functions should have warn_unused_result set
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Jun 11, 2019
1 parent f1c47eb commit e3ae9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/h2o/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static int h2o_buffer_append(h2o_buffer_t **dst, void *src, size_t len);
* variant of h2o_buffer_append that does not abort on failure
* @return 0 on allocation failure, 1 otherwise
*/
static int h2o_buffer_try_append(h2o_buffer_t **dst, void *src, size_t len);
static int h2o_buffer_try_append(h2o_buffer_t **dst, void *src, size_t len) __attribute__((warn_unused_result));
/**
* throws away given size of the data from the buffer.
* @param delta number of octets to be drained from the buffer
Expand Down

0 comments on commit e3ae9f7

Please sign in to comment.