From 8d3701f507cfda835855a64f598bed468a4b31e3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 15 Mar 2021 14:01:32 -0600 Subject: [PATCH] [buffer] HB_NODISCARD in_error() --- 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 e5d360f11..0354bbb9e 100644 --- a/src/hb-buffer.hh +++ b/src/hb-buffer.hh @@ -139,7 +139,7 @@ struct hb_buffer_t /* Methods */ - bool in_error () const { return !successful; } + HB_NODISCARD bool in_error () const { return !successful; } void allocate_var (unsigned int start, unsigned int count) {