[uniscribe] Whitelist function type cast
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 28 Jan 2019 19:15:18 +0000 (14:15 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 28 Jan 2019 19:15:18 +0000 (14:15 -0500)
src/hb-uniscribe.cc

index 8e9fda2..31c50df 100644 (file)
@@ -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   ||