As por Don's comment in bug #185462 (comment 8) > Noticed this issue while rebasing. GCallback shouldn't be in freetype files. > > > Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:51 > > + reinterpret_cast<cairo_destroy_func_t>(reinterpret_cast<GCallback>(FT_Done_Face))); > > This casts assumes USE(GLIB)
Created attachment 348003 [details] Patch
Comment on attachment 348003 [details] Patch The double cast is probably needed to silence -Wcast-function-type. Are you certain this doesn't introduce any new warnings when building with GCC 8? Instead of casting through GCallback, you can instead cast through void (*) (void). That's the documented way to avoid -Wcast-function-type. GCallback is just a typedef for that.
Comment on attachment 348003 [details] Patch This blames to r231565 So you'll need to use void (*) (void) instead.
Created attachment 348005 [details] Patch
Clang is happy with the change. So informally I would r+ this as long as GCC is happy.
Comment on attachment 348005 [details] Patch Clearing flags on attachment: 348005 Committed r235325: <https://trac.webkit.org/changeset/235325>
All reviewed patches have been landed. Closing bug.
<rdar://problem/43693002>