| Summary: | [FreeType] Do not cast through GLib types in FontCustomPlatformDataFreeType.cpp | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Adrian Perez <aperez> | ||||||
| Component: | WebKit Misc. | Assignee: | Adrian Perez <aperez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | clopez, commit-queue, dino, don.olmstead, mcatanzaro, mmaxfield, simon.fraser, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Other | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Adrian Perez
2018-08-24 06:10:46 PDT
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. |