From f19c6db18e2e2dd0e9a406fc7e8533049fab48b0 Mon Sep 17 00:00:00 2001 From: jfkthame Date: Fri, 20 Nov 2015 08:43:49 +0000 Subject: [PATCH] Add braces for subobject initializer in _hb_font_funcs_nil To avoid triggering -Wmissing-braces; see https://bugzilla.mozilla.org/show_bug.cgi?id=1226175#c8 --- src/hb-font.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hb-font.cc b/src/hb-font.cc index 170dd5572..00f9fb6d7 100644 --- a/src/hb-font.cc +++ b/src/hb-font.cc @@ -297,9 +297,11 @@ static const hb_font_funcs_t _hb_font_funcs_nil = { #undef HB_FONT_FUNC_IMPLEMENT }, { + { #define HB_FONT_FUNC_IMPLEMENT(name) hb_font_get_##name##_nil, - HB_FONT_FUNCS_IMPLEMENT_CALLBACKS + HB_FONT_FUNCS_IMPLEMENT_CALLBACKS #undef HB_FONT_FUNC_IMPLEMENT + } } }; static const hb_font_funcs_t _hb_font_funcs_parent = { @@ -318,9 +320,11 @@ static const hb_font_funcs_t _hb_font_funcs_parent = { #undef HB_FONT_FUNC_IMPLEMENT }, { + { #define HB_FONT_FUNC_IMPLEMENT(name) hb_font_get_##name##_parent, - HB_FONT_FUNCS_IMPLEMENT_CALLBACKS + HB_FONT_FUNCS_IMPLEMENT_CALLBACKS #undef HB_FONT_FUNC_IMPLEMENT + } } };