<?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>314914</bug_id>
          
          <creation_ts>2026-05-15 13:41:11 -0700</creation_ts>
          <short_desc>[GTK][WPE] Clang 22 is overly chatty about -Wunsafe-buffer-usage-in-format-attr-call</short_desc>
          <delta_ts>2026-05-18 03:24:16 -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>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=315007</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>
          
          <blocked>309978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>philn</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2211266</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-05-15 13:41:11 -0700</bug_when>
    <thetext>Clang 22.x has this warning enabled by default, and any usage of a function that receives a printf-style format string and parameters can potentially emit a warning if the compiler cannot determine whether strings are null-terminated. Which happens surprisingly often, many of them being false positives. We should disable this warning for now because even using “build-webkit --[gtk|wpe] --no-fatal-warnings” there is so much warning spam that it is impossible to see meaningful compiler warnings/errors in the midle off the chaff.

With the WebKit SDK we use for GTK and WPE the issue is easily reproducible with:

  % CC=clang-22 CXX=clang++-22 build-webkit --wpe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211268</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2026-05-15 13:45:50 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/65008</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211388</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">philn</who>
    <bug_when>2026-05-16 00:45:00 -0700</bug_when>
    <thetext>*** Bug 309978 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2211403</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-05-16 03:09:33 -0700</bug_when>
    <thetext>Committed 313356@main (b035254290ed): &lt;https://commits.webkit.org/313356@main&gt;

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

    </bug>

</bugzilla>