<?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>15764</bug_id>
          
          <creation_ts>2007-10-30 07:39:11 -0700</creation_ts>
          <short_desc>compiler warning</short_desc>
          <delta_ts>2007-11-02 16:27:38 -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>JavaScriptCore</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>OS X 10.4</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>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carson">dacarson</reporter>
          <assigned_to name="David Carson">dacarson</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59848</commentid>
    <comment_count>0</comment_count>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-10-30 07:39:11 -0700</bug_when>
    <thetext>Some compilers give a warning for the following function:

inline bool JSValue::isNumber() const
{
    return JSImmediate::isNumber(this) || !JSImmediate::isImmediate(this) &amp;&amp; asCell()-&gt;isNumber();
}

&quot;warning: suggest parentheses around &amp;&amp; within ||&quot;

This file is compiled into a lot of the JSCore files and the warning is seen for every file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59850</commentid>
    <comment_count>1</comment_count>
      <attachid>16948</attachid>
    <who name="David Carson">dacarson</who>
    <bug_when>2007-10-30 07:48:56 -0700</bug_when>
    <thetext>Created attachment 16948
patch

insert suggested braces, also makes it easier to read.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59851</commentid>
    <comment_count>2</comment_count>
      <attachid>16948</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-10-30 07:56:15 -0700</bug_when>
    <thetext>Comment on attachment 16948
patch

Parentheses look fine. But not the spaces within the parentheses! We don&apos;t use spaces there in our expressions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60109</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-11-02 16:27:38 -0700</bug_when>
    <thetext>Committed revision 27381.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>16948</attachid>
            <date>2007-10-30 07:48:56 -0700</date>
            <delta_ts>2007-10-30 07:56:15 -0700</delta_ts>
            <desc>patch</desc>
            <filename>warning.txt</filename>
            <type>text/plain</type>
            <size>1110</size>
            <attacher name="David Carson">dacarson</attacher>
            
              <data encoding="base64">SW5kZXg6IEphdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBKYXZhU2NyaXB0
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDI3MjU2KQorKysgSmF2YVNjcmlwdENvcmUvQ2hhbmdl
TG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTMgQEAKKzIwMDctMTAtMzAgIERhdmlkIENh
cnNvbiAgPGRhY2Fyc29uQGdtYWlsLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkg
KE9PUFMhKS4KKworCUZpeCBjb21waWxlciB3YXJuaW5nICJ3YXJuaW5nOiBzdWdnZXN0IHBhcmVu
dGhlc2VzIGFyb3VuZCAmJiB3aXRoaW4gfHwiCisgICAgICAgIGh0dHA6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2dpP2lkPTE1NzY0CisKKyAgICAgICAgKiBranMvdmFsdWUuaDoKKyAgICAg
ICAgKEtKUzo6SlNWYWx1ZTo6aXNOdW1iZXIpOgorCiAyMDA3LTEwLTI5ICBPbGl2ZXIgSHVudCAg
PG9saXZlckBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgTWFjaWVqLgpJbmRleDog
SmF2YVNjcmlwdENvcmUva2pzL3ZhbHVlLmgKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gSmF2YVNjcmlwdENvcmUv
a2pzL3ZhbHVlLmgJKHJldmlzaW9uIDI3MjU2KQorKysgSmF2YVNjcmlwdENvcmUva2pzL3ZhbHVl
LmgJKHdvcmtpbmcgY29weSkKQEAgLTI3NCw3ICsyNzQsNyBAQCBpbmxpbmUgYm9vbCBKU1ZhbHVl
Ojppc0Jvb2xlYW4oKSBjb25zdAogCiBpbmxpbmUgYm9vbCBKU1ZhbHVlOjppc051bWJlcigpIGNv
bnN0CiB7Ci0gICAgcmV0dXJuIEpTSW1tZWRpYXRlOjppc051bWJlcih0aGlzKSB8fCAhSlNJbW1l
ZGlhdGU6OmlzSW1tZWRpYXRlKHRoaXMpICYmIGFzQ2VsbCgpLT5pc051bWJlcigpOworICAgIHJl
dHVybiBKU0ltbWVkaWF0ZTo6aXNOdW1iZXIodGhpcykgfHwgKCAhSlNJbW1lZGlhdGU6OmlzSW1t
ZWRpYXRlKHRoaXMpICYmIGFzQ2VsbCgpLT5pc051bWJlcigpICk7CiB9CiAKIGlubGluZSBib29s
IEpTVmFsdWU6OmlzU3RyaW5nKCkgY29uc3QK
</data>
<flag name="review"
          id="7195"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>