Fix Release build after r163390.
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Feb 2014 19:22:15 +0000 (19:22 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Feb 2014 19:22:15 +0000 (19:22 +0000)
* platform/audio/MediaSession.cpp: Add "#if !LOG_DISABLED" around logging-only function.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@163393 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/MediaSession.cpp

index 2e4e4f4..80a26cb 100644 (file)
@@ -1,5 +1,11 @@
 2014-02-04  Eric Carlson  <eric.carlson@apple.com>
 
+        Fix Release build after r163390.
+
+        * platform/audio/MediaSession.cpp: Add "#if !LOG_DISABLED" around logging-only function.
+
+2014-02-04  Eric Carlson  <eric.carlson@apple.com>
+
         Refine MediaSession interruptions
         https://bugs.webkit.org/show_bug.cgi?id=128125
 
index 776ad3d..590b533 100644 (file)
@@ -32,6 +32,7 @@
 
 namespace WebCore {
 
+#if !LOG_DISABLED
 static const char* stateName(MediaSession::State state)
 {
 #define CASE(_state) case MediaSession::_state: return #_state; break;
@@ -45,7 +46,8 @@ static const char* stateName(MediaSession::State state)
     ASSERT_NOT_REACHED();
     return "";
 }
-    
+#endif
+
 std::unique_ptr<MediaSession> MediaSession::create(MediaSessionClient& client)
 {
     return std::make_unique<MediaSession>(client);