<?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>43191</bug_id>
          
          <creation_ts>2010-07-29 08:39:34 -0700</creation_ts>
          <short_desc>[Qt] Treat warnings as errors by default for gcc</short_desc>
          <delta_ts>2013-11-22 08:54:24 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>20721</dependson>
    
    <dependson>37916</dependson>
    
    <dependson>38045</dependson>
    
    <dependson>43192</dependson>
    
    <dependson>43193</dependson>
    
    <dependson>43350</dependson>
    
    <dependson>43353</dependson>
    
    <dependson>43355</dependson>
    
    <dependson>43356</dependson>
    
    <dependson>43358</dependson>
    
    <dependson>43359</dependson>
    
    <dependson>43360</dependson>
    
    <dependson>43412</dependson>
    
    <dependson>43413</dependson>
    
    <dependson>43698</dependson>
    
    <dependson>43876</dependson>
    
    <dependson>43920</dependson>
    
    <dependson>43963</dependson>
    
    <dependson>44466</dependson>
    
    <dependson>44468</dependson>
    
    <dependson>44593</dependson>
    
    <dependson>44672</dependson>
    
    <dependson>44843</dependson>
    
    <dependson>44855</dependson>
    
    <dependson>45246</dependson>
    
    <dependson>45301</dependson>
    
    <dependson>45373</dependson>
    
    <dependson>45384</dependson>
    
    <dependson>67778</dependson>
    
    <dependson>67928</dependson>
    
    <dependson>83584</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abecsi</cc>
    
    <cc>allan.jensen</cc>
    
    <cc>benjamin</cc>
    
    <cc>eric</cc>
    
    <cc>hausmann</cc>
    
    <cc>kenneth</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>257695</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-07-29 08:39:34 -0700</bug_when>
    <thetext>I create this bug because of discussion in https://bugs.webkit.org/show_bug.cgi?id=30958 .

I agree with Laszlo, we should treat warnings as errors 
to avoid breaking other platforms accidentally.

The main goal of this patch is adding -Werror to QMAKE_CFLAGS,
but it depends on fixing dozens of warning. First we can focus
on x86-linux and x86-windows platforms and then ARM-linux and 
other platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>257697</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-07-29 08:42:40 -0700</bug_when>
    <thetext>(In reply to comment #9 in https://bugs.webkit.org/show_bug.cgi?id=30958)
&gt; My only concern would be the extra pressure to fix these warnings to keep the bot green. CCing Ossy to see what he think.
 
&gt; A somewhat relaxed version of this - which I think we should do - is to start treating warnings as errors by default (at least on platforms where this is realistic like i386) but have a provision (e.g. environment variable) not to do this for the build bot.
 
&gt; This will force most developers to look into the warning but does not put extra pressure on the bot.

I absolutely agree with Laszlo, it is a good way to solve this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258940</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-08-02 10:05:29 -0700</bug_when>
    <thetext>*** Bug 37916 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275679</commentid>
    <comment_count>3</comment_count>
      <attachid>66858</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-08 01:55:33 -0700</bug_when>
    <thetext>Created attachment 66858
enable -Werror on x86/Linux/GCC platforms

I think it&apos;s time to enable -Werror on x86/Linux/GCC platforms
after https://bugs.webkit.org/show_bug.cgi?id=45373 fixed.

The next steps will be Windows/GCC and ARM/Linux/GCC after all warnings fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275718</commentid>
    <comment_count>4</comment_count>
      <attachid>66858</attachid>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-09-08 03:35:29 -0700</bug_when>
    <thetext>Comment on attachment 66858
enable -Werror on x86/Linux/GCC platforms

r=me

I always feel silly when the EWS slaps me about some warning that my own machine knew about but wasn&apos;t loud enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275720</commentid>
    <comment_count>5</comment_count>
      <attachid>66858</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-08 03:38:25 -0700</bug_when>
    <thetext>Comment on attachment 66858
enable -Werror on x86/Linux/GCC platforms

cq-, because I will land manually after 
https://bugs.webkit.org/show_bug.cgi?id=45373 fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275751</commentid>
    <comment_count>6</comment_count>
      <attachid>66858</attachid>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-08 04:35:11 -0700</bug_when>
    <thetext>Comment on attachment 66858
enable -Werror on x86/Linux/GCC platforms

Clearing flags on attachment: 66858

Committed r66972: &lt;http://trac.webkit.org/changeset/66972&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>275901</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2010-09-08 09:54:19 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; (From update of attachment 66858 [details])
&gt; Clearing flags on attachment: 66858
&gt; 
&gt; Committed r66972: &lt;http://trac.webkit.org/changeset/66972&gt;
And a buildfix landed in http://trac.webkit.org/changeset/66990 ,
because linux-g++ is true when you build for maemo inside sbox,
but we didn&apos;t want to enable -Werror for it now.

I didn&apos;t run into this issue, because linux-g++ is false 
for ARM cross compiling, but linux-arm-g++ is true.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>276085</commentid>
    <comment_count>8</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-09-08 14:49:24 -0700</bug_when>
    <thetext>Very nice, thanks for all this work !</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>66858</attachid>
            <date>2010-09-08 01:55:33 -0700</date>
            <delta_ts>2010-09-08 04:35:11 -0700</delta_ts>
            <desc>enable -Werror on x86/Linux/GCC platforms</desc>
            <filename>1.patch</filename>
            <type>text/plain</type>
            <size>1230</size>
            <attacher name="Csaba Osztrogonác">ossy</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDY2OTU2
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDkt
MDggIENzYWJhIE9zenRyb2dvbsOhYyAgPG9zc3lAd2Via2l0Lm9yZz4KKworICAgICAgICBSZXZp
ZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBbUXRdIFRyZWF0IHdhcm5pbmdzIGFz
IGVycm9ycyBieSBkZWZhdWx0IGZvciBnY2MKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTQzMTkxCisKKyAgICAgICAgKiBXZWJLaXQucHJpOiAtV2Vycm9y
I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ywzNjgsODMwLDEyOTMK
</data>

          </attachment>
      

    </bug>

</bugzilla>