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