<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>289988</bug_id>
          
          <creation_ts>2025-03-18 12:58:21 -0700</creation_ts>
          <short_desc>-Wsubobject-linkage warnings triggered by coroutines</short_desc>
          <delta_ts>2025-03-19 07:39:05 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=288413</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2104132</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-03-18 12:58:21 -0700</bug_when>
    <thetext>Since 291846@main &quot;Begin using C++ coroutines for WebFullScreenManagerProxy IPC functions&quot; we have some new warnings:

[66/237] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-8.cpp.o
In file included from /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk4/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-8.cpp:1:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: In member function ‘WTF::Awaitable&lt;bool&gt; WebKit::WebFullScreenManagerProxy::enterFullScreen(IPC::Connection&amp;, WebCore::FrameIdentifier, bool, WebKit::FullScreenMediaDetails)’:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:233:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy15enterFullScreenERN3IPC10ConnectionEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS4_19FrameIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEEbNS_22FullScreenMediaDetailsE.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::enterFullScreen(IPC::Connection&amp;, WebCore::FrameIdentifier, bool, WebKit::FullScreenMediaDetails)::&lt;lambda(auto:233)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy15enterFullScreenERN3IPC10ConnectionEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS4_19FrameIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEEbNS_22FullScreenMediaDetailsE.Frame::T003_2_3’ whose type has no linkage [-Wsubobject-linkage]
  233 | }
      | ^
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:233:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy15enterFullScreenERN3IPC10ConnectionEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS4_19FrameIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEEbNS_22FullScreenMediaDetailsE.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::enterFullScreen(IPC::Connection&amp;, WebCore::FrameIdentifier, bool, WebKit::FullScreenMediaDetails)::&lt;lambda(auto:234)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy15enterFullScreenERN3IPC10ConnectionEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS4_19FrameIdentifierTypeENS6_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEEbNS_22FullScreenMediaDetailsE.Frame::T003_2_5’ whose type has no linkage [-Wsubobject-linkage]
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: In member function ‘WTF::Awaitable&lt;void&gt; WebKit::WebFullScreenManagerProxy::exitFullScreen()’:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:290:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy14exitFullScreenEv.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::exitFullScreen()::&lt;lambda(auto:235)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy14exitFullScreenEv.Frame::T003_2_3’ whose type has no linkage [-Wsubobject-linkage]
  290 | }
      | ^
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: In member function ‘WTF::Awaitable&lt;bool&gt; WebKit::WebFullScreenManagerProxy::beganEnterFullScreen(WebCore::IntRect, WebCore::IntRect)’:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:335:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy20beganEnterFullScreenEN7WebCore7IntRectES2_.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::beganEnterFullScreen(WebCore::IntRect, WebCore::IntRect)::&lt;lambda(auto:236)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy20beganEnterFullScreenEN7WebCore7IntRectES2_.Frame::T003_2_4’ whose type has no linkage [-Wsubobject-linkage]
  335 | }
      | ^
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:335:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy20beganEnterFullScreenEN7WebCore7IntRectES2_.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::beganEnterFullScreen(WebCore::IntRect, WebCore::IntRect)::&lt;lambda(auto:237)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy20beganEnterFullScreenEN7WebCore7IntRectES2_.Frame::T004_2_5’ whose type has no linkage [-Wsubobject-linkage]
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: In member function ‘WTF::Awaitable&lt;void&gt; WebKit::WebFullScreenManagerProxy::beganExitFullScreen(WebCore::FrameIdentifier, WebCore::IntRect, WebCore::IntRect)’:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:364:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy19beganExitFullScreenEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS1_19FrameIdentifierTypeENS3_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEENS1_7IntRectESA_.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::beganExitFullScreen(WebCore::FrameIdentifier, WebCore::IntRect, WebCore::IntRect)::&lt;lambda(auto:238)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy19beganExitFullScreenEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS1_19FrameIdentifierTypeENS3_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEENS1_7IntRectESA_.Frame::T003_2_3’ whose type has no linkage [-Wsubobject-linkage]
  364 | }
      | ^
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp:364:1: warning: ‘WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy19beganExitFullScreenEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS1_19FrameIdentifierTypeENS3_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEENS1_7IntRectESA_.Frame’ has a field ‘WebKit::WebFullScreenManagerProxy::beganExitFullScreen(WebCore::FrameIdentifier, WebCore::IntRect, WebCore::IntRect)::&lt;lambda(auto:239)&gt; WebKit::WebFullScreenManagerProxy::_ZN6WebKit25WebFullScreenManagerProxy19beganExitFullScreenEN7WebCore16ProcessQualifiedIN3WTF23ObjectIdentifierGenericINS1_19FrameIdentifierTypeENS3_38ObjectIdentifierMainThreadAccessTraitsImEEmEEEENS1_7IntRectESA_.Frame::T003_2_4’ whose type has no linkage [-Wsubobject-linkage]
[137/237] Building CXX object Source/WebKit/CMakeFiles/WebKit.dir/__/__/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-9.cpp.o
In file included from /home/mcatanzaro/Projects/WebKit/WebKitBuild/gtk4/DerivedSources/WebKit/unified-sources/UnifiedSource-88d1702b-9.cpp:2:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebPageProxy.cpp: In member function ‘WTF::Awaitable&lt;void&gt; WebKit::WebPageProxy::nextPresentationUpdate()’:
/home/mcatanzaro/Projects/WebKit/Source/WebKit/UIProcess/WebPageProxy.cpp:13980:1: warning: ‘WebKit::WebPageProxy::_ZN6WebKit12WebPageProxy22nextPresentationUpdateEv.Frame’ has a field ‘WebKit::WebPageProxy::nextPresentationUpdate()::&lt;lambda(auto:449)&gt; WebKit::WebPageProxy::_ZN6WebKit12WebPageProxy22nextPresentationUpdateEv.Frame::T003_2_3’ whose type has no linkage [-Wsubobject-linkage]
13980 | }
      | ^

There&apos;s nothing we can do about this other than suppress the warnings. It is a GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105595

I notice that Alex already decided to suppress this warning in WebKitCompilerFlags.cmake for GCC versions less than 14.0, with a link to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70413. However, I&apos;m not sure this bug is actually related, and the warnings are definitely still happening with GCC 15.0.1, so let&apos;s suppress it for all GCC versions.

Unfortunately Clang does not support this warning flag, so we won&apos;t be warned about actual problems. Oh well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104133</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2025-03-18 13:00:11 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/42643</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2104336</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-03-19 07:39:02 -0700</bug_when>
    <thetext>Committed 292353@main (cda7e1edea14): &lt;https://commits.webkit.org/292353@main&gt;

Reviewed commits have been landed. Closing PR #42643 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>