<?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>315007</bug_id>
          
          <creation_ts>2026-05-18 03:24:16 -0700</creation_ts>
          <short_desc>REGRESSION(313391@main): [WPE][GTK] Building with Clang-22 produces too many warnings again</short_desc>
          <delta_ts>2026-05-18 23:34:41 -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>CMake</component>
          <version>Other</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=314914</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=314991</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="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2211664</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-05-18 03:24:16 -0700</bug_when>
    <thetext>In 313356@main we introduced -Wno-unsafe-buffer-usage-in-format-attr-call to silence the humungous amount of compiler warnings we get for the GTK and WPE ports. Then 313391@main shuffled things around and the warnings are back... because the flag to suppress this particular warning needs to be indicated *after* -Wunsafe-buffer-usage. That patch puts -Wno-unsafe-buffer-usage-in-format-attr-call in the global list of compiler flags, but those are always added *before* target-specific compiler flags, and we end up with them being the wrong order.

I think we could have a list of unsafe-buffer-usage related flags, that always get applied per-target, and that way the per port Options{WPE,GTK}.cmake files have a chance of modifying the list before it gets attached to targets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211669</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-05-18 03:51:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65097</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211947</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-18 23:34:40 -0700</bug_when>
    <thetext>Committed 313465@main (94043d8f9138): &lt;https://commits.webkit.org/313465@main&gt;

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

    </bug>

</bugzilla>