Changeset 190725 in webkit


Ignore:
Timestamp:
Oct 8, 2015 8:27:36 AM (9 years ago)
Author:
Michael Catanzaro
Message:

Format string issues in LegacyRequest.cpp
https://bugs.webkit.org/show_bug.cgi?id=149866

Reviewed by Csaba Osztrogonác.

Cast enums to ints before printing them to placate GCC's -Wformat.

  • Modules/indexeddb/legacy/LegacyRequest.cpp:

(WebCore::LegacyRequest::dispatchEvent):
(WebCore::LegacyRequest::enqueueEvent):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r190723 r190725  
     12015-10-08  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        Format string issues in LegacyRequest.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=149866
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        Cast enums to ints before printing them to placate GCC's -Wformat.
     9
     10        * Modules/indexeddb/legacy/LegacyRequest.cpp:
     11        (WebCore::LegacyRequest::dispatchEvent):
     12        (WebCore::LegacyRequest::enqueueEvent):
     13
    1142015-10-08  Commit Queue  <commit-queue@webkit.org>
    215
  • trunk/Source/WebCore/Modules/indexeddb/legacy/LegacyRequest.cpp

    r190580 r190725  
    476476    ASSERT(scriptExecutionContext());
    477477    ASSERT(event->target() == this);
    478     ASSERT_WITH_MESSAGE(m_readyState < IDBRequestReadyState::Done, "When dispatching event %s, m_readyState < DONE(%d), was %d", event->type().string().utf8().data(), IDBRequestReadyState::Done, m_readyState);
     478    ASSERT_WITH_MESSAGE(m_readyState < IDBRequestReadyState::Done, "When dispatching event %s, m_readyState < DONE(%d), was %d", event->type().string().utf8().data(), static_cast<int>(IDBRequestReadyState::Done), static_cast<int>(m_readyState));
    479479
    480480    DOMRequestState::Scope scope(m_requestState);
     
    573573        return;
    574574
    575     ASSERT_WITH_MESSAGE(m_readyState == IDBRequestReadyState::Pending || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().data(), m_readyState);
     575    ASSERT_WITH_MESSAGE(m_readyState == IDBRequestReadyState::Pending || m_didFireUpgradeNeededEvent, "When queueing event %s, m_readyState was %d", event->type().string().utf8().data(), static_cast<int>(m_readyState));
    576576
    577577    event->setTarget(this);
Note: See TracChangeset for help on using the changeset viewer.