WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188919
[FreeType] Do not cast through GLib types in FontCustomPlatformDataFreeType.cpp
https://bugs.webkit.org/show_bug.cgi?id=188919
Summary
[FreeType] Do not cast through GLib types in FontCustomPlatformDataFreeType.cpp
Adrian Perez
Reported
2018-08-24 06:10:46 PDT
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)
Attachments
Patch
(1.79 KB, patch)
2018-08-24 06:13 PDT
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
Patch
(1.86 KB, patch)
2018-08-24 07:13 PDT
,
Adrian Perez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Adrian Perez
Comment 1
2018-08-24 06:13:00 PDT
Created
attachment 348003
[details]
Patch
Michael Catanzaro
Comment 2
2018-08-24 06:49:50 PDT
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.
Michael Catanzaro
Comment 3
2018-08-24 06:52:44 PDT
Comment on
attachment 348003
[details]
Patch This blames to
r231565
So you'll need to use void (*) (void) instead.
Adrian Perez
Comment 4
2018-08-24 07:13:18 PDT
Created
attachment 348005
[details]
Patch
Don Olmstead
Comment 5
2018-08-24 09:08:09 PDT
Clang is happy with the change. So informally I would r+ this as long as GCC is happy.
WebKit Commit Bot
Comment 6
2018-08-24 12:13:09 PDT
Comment on
attachment 348005
[details]
Patch Clearing flags on attachment: 348005 Committed
r235325
: <
https://trac.webkit.org/changeset/235325
>
WebKit Commit Bot
Comment 7
2018-08-24 12:13:11 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8
2018-08-24 12:14:22 PDT
<
rdar://problem/43693002
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug