<?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>286982</bug_id>
          
          <creation_ts>2025-02-03 19:25:30 -0800</creation_ts>
          <short_desc>Suppress lambda capture warning in StreamConnectionWorkQueue.cpp</short_desc>
          <delta_ts>2025-02-07 02:53:49 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>dpino</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2091689</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-02-03 19:25:30 -0800</bug_when>
    <thetext>Suppress the lambda capture static analyzer warning in StreamConnectionWorkQueue.cpp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091690</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-02-03 19:27:40 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/39957</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091751</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-04 00:13:09 -0800</bug_when>
    <thetext>Committed 289774@main (a4b28dc46934): &lt;https://commits.webkit.org/289774@main&gt;

Reviewed commits have been landed. Closing PR #39957 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091752</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-02-04 00:14:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/144143542&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092712</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-02-07 00:09:49 -0800</bug_when>
    <thetext>Compilation with Clang-18 and lower is failing after this commit:

https://build.webkit.org/#/builders/628/builds/19509

```
FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/MainThread.cpp.o 
/usr/bin/ccache /usr/lib/sdk/llvm18/bin/clang++ -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WPE__=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\&quot;/usr/bin/bwrap\&quot; -DDBUS_PROXY_EXECUTABLE=\&quot;/usr/bin/xdg-dbus-proxy\&quot; -DGETTEXT_PACKAGE=\&quot;WPE\&quot; -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -I/app/webkit/WebKitBuild/WPE/Release -I/app/webkit/WebKitBuild/WPE/Release/WTF/DerivedSources -I/app/webkit/Source/WTF -I/app/webkit/Source/WTF/wtf -I/app/webkit/Source/WTF/wtf/dtoa -I/app/webkit/Source/WTF/wtf/fast_float -I/app/webkit/Source/WTF/wtf/persistence -I/app/webkit/Source/WTF/wtf/simdutf -I/app/webkit/Source/WTF/wtf/text -I/app/webkit/Source/WTF/wtf/text/icu -I/app/webkit/Source/WTF/wtf/threads -I/app/webkit/Source/WTF/wtf/unicode -I/app/webkit/WebKitBuild/WPE/Release/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/sysprof-6 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Werror=undefined-internal -Werror=undefined-inline -pipe -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-parentheses-equality -Qunused-arguments -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fasynchronous-unwind-tables -fdebug-types-section -fno-strict-aliasing -fno-exceptions -fno-rtti -fcoroutines -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++23 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wunsafe-buffer-usage -fsafe-buffer-usage-suggestions -pthread -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/MainThread.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/MainThread.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/MainThread.cpp.o -c /app/webkit/Source/WTF/wtf/MainThread.cpp
In file included from /app/webkit/Source/WTF/wtf/MainThread.cpp:37:
/app/webkit/Source/WTF/wtf/RunLoop.h:188:58: error: &apos;suppress&apos; attribute only applies to variables and statements
  188 |             : Timer(WTFMove(runLoop), [object, function] SUPPRESS_UNCOUNTED_LAMBDA_CAPTURE { // The Timer&apos;s owner is expected to cancel the Timer in its destructor.
      |                                                          ^
```

It&apos;s a compiler error. Clang-18 doesn&apos;t support &apos;suppress&apos; attribute on lambdas.

https://godbolt.org/z/M8oE6hh5s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092715</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2025-02-07 00:35:56 -0800</bug_when>
    <thetext>You probably need to disable these macros in your version of clang.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092732</commentid>
    <comment_count>6</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2025-02-07 01:15:33 -0800</bug_when>
    <thetext>Re-opening for pull request https://github.com/WebKit/WebKit/pull/40199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2092746</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-07 02:53:47 -0800</bug_when>
    <thetext>Committed 289996@main (d01b88858f3b): &lt;https://commits.webkit.org/289996@main&gt;

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

    </bug>

</bugzilla>