<?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>113547</bug_id>
          
          <creation_ts>2013-03-28 17:11:21 -0700</creation_ts>
          <short_desc>Compiler warning in IDBTransaction::modeToString</short_desc>
          <delta_ts>2013-03-29 20:03:50 -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>DOM</component>
          <version>528+ (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="Philip Rogers">pdr</reporter>
          <assigned_to name="Philip Rogers">pdr</assigned_to>
          <cc>alecflett</cc>
    
    <cc>dgrogan</cc>
    
    <cc>jsbell</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>865928</commentid>
    <comment_count>0</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-03-28 17:11:21 -0700</bug_when>
    <thetext>http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20Heapcheck/builds/15910/steps/compile/logs/stdio

third_party/WebKit/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp: In static member function &apos;static const WTF::AtomicString&amp; WebCore::IDBTransaction::modeToString(WebCore::IndexedDB::TransactionMode)&apos;:
third_party/WebKit/Source/WebCore/Modules/indexeddb/IDBTransaction.cpp:370:1: warning: control reaches end of non-void function [-Wreturn-type]

Patch forthcoming.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865932</commentid>
    <comment_count>1</comment_count>
      <attachid>195683</attachid>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-03-28 17:19:46 -0700</bug_when>
    <thetext>Created attachment 195683
Fix compiler warning</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865934</commentid>
    <comment_count>2</comment_count>
      <attachid>195683</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-03-28 17:22:56 -0700</bug_when>
    <thetext>Comment on attachment 195683
Fix compiler warning

This looks like a good change to me. Normally, this is our preferred style for switches on enums. We like to leave out the default case from the switch so that some compilers (gcc family ones) can warn if we fail to include one of the enum values. And we like to have an ASSERT_NOT_REACHED after the switch so that we get predictable behavior in release builds, and an assertion in debug builds, if we have a bizarre value at runtime that is not one of the enum values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865937</commentid>
    <comment_count>3</comment_count>
      <attachid>195683</attachid>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-03-28 17:32:33 -0700</bug_when>
    <thetext>Comment on attachment 195683
Fix compiler warning

Thanks for the quick and educational review! I wasn&apos;t aware of the preferred enum style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865942</commentid>
    <comment_count>4</comment_count>
      <attachid>195683</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-28 17:48:34 -0700</bug_when>
    <thetext>Comment on attachment 195683
Fix compiler warning

Clearing flags on attachment: 195683

Committed r147187: &lt;http://trac.webkit.org/changeset/147187&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>865943</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-03-28 17:48:37 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>866220</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2013-03-29 10:13:54 -0700</bug_when>
    <thetext>Interesting... I&apos;d expect there to be a lurking compiler warning for the similarly structured IDBCursor::directionToString() function.

pdr, is it showing up anywhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>866540</commentid>
    <comment_count>7</comment_count>
    <who name="Philip Rogers">pdr</who>
    <bug_when>2013-03-29 20:03:50 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Interesting... I&apos;d expect there to be a lurking compiler warning for the similarly structured IDBCursor::directionToString() function.
&gt; 
&gt; pdr, is it showing up anywhere?

It looks like this bot just returns the first warning it encounters. I agree we should be seeing the same issue for directionToString() too.

The bot is now hitting the following warning:
http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20Heapcheck/builds/15928/steps/compile/logs/warnings%20%281%29

I&apos;ve put up a patch in Chromium to fix this new warning: https://codereview.chromium.org/13378002. Obviously, this isn&apos;t a sustainable way to fix these warnings so in parallel I&apos;ll search around for a presubmit check.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>195683</attachid>
            <date>2013-03-28 17:19:46 -0700</date>
            <delta_ts>2013-03-28 17:48:34 -0700</delta_ts>
            <desc>Fix compiler warning</desc>
            <filename>113547.1.patch</filename>
            <type>text/plain</type>
            <size>1545</size>
            <attacher name="Philip Rogers">pdr</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE0NzE4NSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE4IEBACisy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2FjdGlvbi5jcHAJKHJldmlzaW9uIDE0NzEyNikKKysrIFNvdXJjZS9XZWJDb3JlL01vZHVsZXMv
aW5kZXhlZGRiL0lEQlRyYW5zYWN0aW9uLmNwcAkod29ya2luZyBjb3B5KQpAQCAtMzYyLDExICsz
NjIsMTAgQEAgY29uc3QgQXRvbWljU3RyaW5nJiBJREJUcmFuc2FjdGlvbjo6bW9kZQogICAgIGNh
c2UgSW5kZXhlZERCOjpUcmFuc2FjdGlvblZlcnNpb25DaGFuZ2U6CiAgICAgICAgIHJldHVybiBJ
REJUcmFuc2FjdGlvbjo6bW9kZVZlcnNpb25DaGFuZ2UoKTsKICAgICAgICAgYnJlYWs7Ci0KLSAg
ICBkZWZhdWx0OgotICAgICAgICBBU1NFUlRfTk9UX1JFQUNIRUQoKTsKLSAgICAgICAgcmV0dXJu
IElEQlRyYW5zYWN0aW9uOjptb2RlUmVhZE9ubHkoKTsKICAgICB9CisKKyAgICBBU1NFUlRfTk9U
X1JFQUNIRUQoKTsKKyAgICByZXR1cm4gSURCVHJhbnNhY3Rpb246Om1vZGVSZWFkT25seSgpOwog
fQogCiBjb25zdCBBdG9taWNTdHJpbmcmIElEQlRyYW5zYWN0aW9uOjppbnRlcmZhY2VOYW1lKCkg
Y29uc3QK
</data>

          </attachment>
      

    </bug>

</bugzilla>