<?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>246520</bug_id>
          
          <creation_ts>2022-10-14 07:35:31 -0700</creation_ts>
          <short_desc>[libpas] libpas is unconditionally built with -Werror</short_desc>
          <delta_ts>2022-10-14 13:24:20 -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>bmalloc</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>InRadar</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>
          <cc>bugs-noreply</cc>
    
    <cc>ggaren</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1905616</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-10-14 07:35:31 -0700</bug_when>
    <thetext>Currently libpas is built with -Werror. This is not OK because it&apos;s used unconditionally, so it&apos;s enabled in release tarballs. This has been considered bad practice for a very long time because it&apos;s likely to cause spurious build failures for anyone not using the exact same compiler version tested by the developers.

It&apos;s OK to use -Werror, but only an opt-in basis. We need to make sure it gets enabled only for developers and never for normal builds. We already have a DEVELOPER_MODE_FATAL_WARNINGS flag for this purpose, but it only works for stuff that uses WEBKIT_FRAMEWORK, WEBKIT_EXECUTABLE, or WEBKIT_WRAP_EXECUTABLE, and it looks like libpas does not use any of that. I guess libpas is avoiding use of WebKit macros in case we want to split it out from WebKit&apos;s source tree in the future, so that it can be used by other projects? If so, I suppose we cannot look at DEVELOPER_MODE_FATAL_WARNINGS. Adding a libpas-specific flag to opt-in to fatal warnings separate from DEVELOPER_MODE_FATAL_WARNINGS doesn&apos;t sound very appealing to me, but it&apos;s an option. For now, I will just remove -Werror to get us into a reasonable state. libpas maintainers can decide their preference for else to enable fatal warnings. Just setting CXXFLAGS=-Werror seems entirely reasonable to me, though. ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905617</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-10-14 07:38:53 -0700</bug_when>
    <thetext>libpas also uses -Wall, so in addition to existing warnings getting stricter, there will also be completely new warnings in the future that will break the build, which we cannot anticipate today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905619</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-10-14 07:42:01 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/5375</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905694</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-10-14 13:23:52 -0700</bug_when>
    <thetext>Committed 255548@main (0d78e3342b26): &lt;https://commits.webkit.org/255548@main&gt;

Reviewed commits have been landed. Closing PR #5375 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1905695</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-10-14 13:24:20 -0700</bug_when>
    <thetext>&lt;rdar://problem/101184428&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>