mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Fix build with -O0
message_impl was not defined. That causes trouble if compiler didn't optimize the unreachable call out...
This commit is contained in:
1 parent
6b44bf8538
commit
7f3b409e85
2 files changed
+4
-1
No files matched your search
@@ -2023,7 +2023,6 @@ hb_buffer_set_message_func (hb_buffer_t *buffer,
|
||||
buffer->message_destroy = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
hb_buffer_t::message_impl (hb_font_t *font, const char *fmt, va_list ap)
|
||||
{
|
||||
|
||||
@@ -359,6 +359,9 @@ struct hb_buffer_t
|
||||
}
|
||||
bool message (hb_font_t *font, const char *fmt, ...) HB_PRINTF_FUNC(3, 4)
|
||||
{
|
||||
#ifdef HB_NO_BUFFER_MESSAGE
|
||||
return true;
|
||||
#else
|
||||
if (!messaging ())
|
||||
return true;
|
||||
va_list ap;
|
||||
@@ -366,6 +369,7 @@ struct hb_buffer_t
|
||||
bool ret = message_impl (font, fmt, ap);
|
||||
va_end (ap);
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
HB_INTERNAL bool message_impl (hb_font_t *font, const char *fmt, va_list ap) HB_PRINTF_FUNC(3, 0);
|
||||
|
||||
|
||||
Reference in new issue
Block a user