From bc22305b6ab626719e8b0c0d6fa518bf7b7267f6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Mar 2021 13:57:18 -0600 Subject: [PATCH] [buffer] HB_NODISCARD ensure_inplace() --- 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 a3819a375..959ce70bd 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -340,7 +340,7 @@ struct hb_buffer_t HB_NODISCARD bool ensure (unsigned int size) { return likely (!size || size < allocated) ? true : enlarge (size); } - bool ensure_inplace (unsigned int size) + HB_NODISCARD bool ensure_inplace (unsigned int size) { return likely (!size || size < allocated); } void assert_glyphs ()