<?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>247890</bug_id>
          
          <creation_ts>2022-11-14 05:16:10 -0800</creation_ts>
          <short_desc>[CMake] No need to build with -Wwrite-strings</short_desc>
          <delta_ts>2022-11-14 14:43:37 -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>CMake</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1912281</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-11-14 05:16:10 -0800</bug_when>
    <thetext>The -Wwrite-strings warning is enabled by default for C++ code, and its benefit in C code is not really so amazing as to justify its use considering how few C source files we have, so specifying it manually is not very useful. From gcc(1):

       -Wwrite-strings
           When compiling C, give string constants the type &quot;const char[length]&quot;
           so that copying the address of one into a non-&quot;const&quot; &quot;char *&quot;
           pointer produces a warning.  These warnings help you find at compile
           time code that can try to write into a string constant, but only if
           you have been very careful about using &quot;const&quot; in declarations and
           prototypes.  Otherwise, it is just a nuisance. This is why we did not
           make -Wall request these warnings.

           When compiling C++, warn about the deprecated conversion from string
           literals to &quot;char *&quot;.  This warning is enabled by default for C++
           programs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912283</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-11-14 05:34:21 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6471</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912433</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-14 14:43:35 -0800</bug_when>
    <thetext>Committed 256674@main (0ce633e16f78): &lt;https://commits.webkit.org/256674@main&gt;

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

    </bug>

</bugzilla>