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 ()