<?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>305348</bug_id>
          
          <creation_ts>2026-01-12 16:07:10 -0800</creation_ts>
          <short_desc>[TestWebKitAPI][GLib]  g_assert_cmpstr: warning: temporary whose address is used as value of local variable &apos;__s2&apos; will be destroyed at the end of the full-expression [-Wdangling]</short_desc>
          <delta_ts>2026-01-13 01:19:51 -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>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>
          
          
          <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="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2171284</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2026-01-12 16:07:10 -0800</bug_when>
    <thetext>Clang reports the following warnings for compiling WebKit.

[9780/9986] Building CXX object Tools/TestWebKitAPI/glib/CMakeFiles/TestWebKitPolicyClient.dir/__/Tests/WebKitGLib/TestWebKitPolicyClient.cpp.o
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitPolicyClient.cpp:195:62: warning: temporary whose address is used as value of local variable &apos;__s2&apos; will be destroyed at the end of the full-expression [-Wdangling]
  195 |     g_assert_cmpstr(webkit_uri_request_get_uri(request), ==, kServer-&gt;getURIForPath(&quot;/&quot;).data());
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:80: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                                ^~
1 warning generated.
[9798/9986] Building CXX object Tools/TestWebKitAPI/glib/CMakeFiles/TestWebKitWebXR.dir/__/Tests/WebKitGLib/TestWebKitWebXR.cpp.o
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:227:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  227 |     g_assert_cmpstr(data.result.title.utf8().data(), ==, &quot;fail&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:235:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  235 |     g_assert_cmpstr(data.result.title.utf8().data(), ==, &quot;pass&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:240:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  240 |     g_assert_cmpstr(data.result.origin.utf8().data(), ==, &quot;https://foo.com&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:246:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  246 |     g_assert_cmpstr(data.result.title.utf8().data(), ==, &quot;fail&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:252:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  252 |     g_assert_cmpstr(data.result.origin.utf8().data(), ==, &quot;https://foo.com&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:258:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  258 |     g_assert_cmpstr(data.result.title.utf8().data(), ==, &quot;pass&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebKitWebXR.cpp:309:21: warning: temporary whose address is used as value of local variable &apos;__s1&apos; will be destroyed at the end of the full-expression [-Wdangling]
  309 |     g_assert_cmpstr(testHitTest().utf8().data(), ==, &quot;NotSupportedError: The operation is not supported.&quot;);
      |                     ^~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:66: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                  ^~
7 warnings generated.
[9815/9986] Building CXX object Tools/TestWebKitAPI/glib/CMakeFiles/TestAutomationSession.dir/__/Tests/WebKitGLib/TestAutomationSession.cpp.o
../../../Tools/TestWebKitAPI/Tests/WebKitGLib/TestAutomationSession.cpp:327:68: warning: temporary whose address is used as value of local variable &apos;__s2&apos; will be destroyed at the end of the full-expression [-Wdangling]
  327 |     g_assert_cmpstr(webkit_automation_session_get_id(session), ==, sessionID.utf8().data());
      |                                                                    ^~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/gtestutils.h:47:80: note: expanded from macro &apos;g_assert_cmpstr&apos;
   47 |                                              const char *__s1 = (s1), *__s2 = (s2); \
      |                                                                                ^~
1 warning generated.
[9986/9986] Linking CXX executable bin/WebKitTestRunner</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171357</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2026-01-13 00:08:04 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/56479</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2171369</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-01-13 01:19:47 -0800</bug_when>
    <thetext>Committed 305503@main (a3aa44e96f03): &lt;https://commits.webkit.org/305503@main&gt;

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

    </bug>

</bugzilla>