From d8028a076208d95fa66050d158f2c4b8c50040ad Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Mar 2021 13:34:36 -0600 Subject: [PATCH] [buffer] HB_NODISCARD enlarge() --- src/hb-buffer.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-buffer.hh b/src/hb-buffer.hh index 00eeda4f1..ae96825db 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -335,7 +335,7 @@ struct hb_buffer_t /* Internal methods */ HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */ - HB_INTERNAL bool enlarge (unsigned int size); + HB_INTERNAL HB_NODISCARD bool enlarge (unsigned int size); bool ensure (unsigned int size) { return likely (!size || size < allocated) ? true : enlarge (size); }