Bug 219264 - [WPE][GTK] Fix build with GCC 11
Summary: [WPE][GTK] Fix build with GCC 11
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-23 15:12 PST by Michael Catanzaro
Modified: 2020-11-26 15:56 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.98 KB, patch)
2020-11-23 15:14 PST, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2020-11-23 15:12:20 PST
WTFGType is using volatile improperly when defining the get_type() macro, because the code is copied from GLib, which had the same bug. See: https://gitlab.gnome.org/GNOME/glib/-/issues/600#note_877282
Comment 1 Michael Catanzaro 2020-11-23 15:14:45 PST
Created attachment 414813 [details]
Patch
Comment 2 Michael Catanzaro 2020-11-23 15:19:01 PST
Honestly I'm not sure why this is a hard build failure. It causes a -Wincompatible-pointer-types warning. Maybe the compiler people decided to test a build with -Werror=incompatible-pointer-types enabled? Regardless, it's nice to see such problems pop up early, rather than waiting until after GCC 11 hits Fedora next year....
Comment 3 EWS 2020-11-26 15:56:47 PST
Committed r270166: <https://trac.webkit.org/changeset/270166>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 414813 [details].