Commit 4263b14c authored by dbates@webkit.org's avatar dbates@webkit.org
Browse files

Fix the iOS Simulator release build

Substitute ASSERT_UNUSED() for ASSERT() to resolve a compiler warning
that the argument platformLayer is unused. The argument platformLayer
is only used in the asserted condition, which isn't compiled in a
release build; => the argument is unused in a release build.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162473 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7585ad5d
2014-01-21 Daniel Bates <dabates@apple.com>
Fix the iOS Simulator release build
Substitute ASSERT_UNUSED() for ASSERT() to resolve a compiler warning
that the argument platformLayer is unused. The argument platformLayer
is only used in the asserted condition, which isn't compiled in a
release build; => the argument is unused in a release build.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
2014-01-21 Zoltan Horvath <zoltan@webkit.org>
 
Since MidpointState is a class, it should behave like a class
......@@ -4926,7 +4926,7 @@ PlatformLayer* HTMLMediaElement::borrowPlatformLayer()
void HTMLMediaElement::returnPlatformLayer(PlatformLayer* platformLayer)
{
ASSERT(m_platformLayerBorrowed && platformLayer == (m_player ? m_player->platformLayer() : nullptr));
ASSERT_UNUSED(platformLayer, m_platformLayerBorrowed && platformLayer == (m_player ? m_player->platformLayer() : nullptr));
m_platformLayerBorrowed = false;
if (renderer())
renderer()->updateFromElement();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment