提交 9a1df82e 编写于 作者: B Behdad Esfahbod

[uniscribe] Whitelist function type cast

上级 6e1c3eaf
......@@ -215,9 +215,12 @@ struct hb_uniscribe_shaper_funcs_t
hinstLib = GetModuleHandle (TEXT ("usp10.dll"));
if (hinstLib)
{
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
this->ScriptItemizeOpenType = (SIOT) GetProcAddress (hinstLib, "ScriptItemizeOpenType");
this->ScriptShapeOpenType = (SSOT) GetProcAddress (hinstLib, "ScriptShapeOpenType");
this->ScriptPlaceOpenType = (SPOT) GetProcAddress (hinstLib, "ScriptPlaceOpenType");
#pragma GCC diagnostic pop
}
if (!this->ScriptItemizeOpenType ||
!this->ScriptShapeOpenType ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册