-Wformat warning on HistoryController.cpp:295:5
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2017 21:56:46 +0000 (21:56 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Apr 2017 21:56:46 +0000 (21:56 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171028

Reviewed by Daniel Bates.

Need to cast WebCore::FrameLoadType to int before using it in printf.

* loader/HistoryController.cpp:
(WebCore::HistoryController::goToItem):

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

Source/WebCore/ChangeLog
Source/WebCore/loader/HistoryController.cpp

index 111fcfe..2836f67 100644 (file)
@@ -1,3 +1,15 @@
+2017-04-20  Michael Catanzaro  <mcatanzaro@igalia.com>
+
+        -Wformat warning on HistoryController.cpp:295:5
+        https://bugs.webkit.org/show_bug.cgi?id=171028
+
+        Reviewed by Daniel Bates.
+
+        Need to cast WebCore::FrameLoadType to int before using it in printf.
+
+        * loader/HistoryController.cpp:
+        (WebCore::HistoryController::goToItem):
+
 2017-04-20  Per Arne Vollan  <pvollan@apple.com>
 
         The toleranceBefore parameter in the AVPlayerItem method seekToTime should not be negative.
index 4447c77..6b9fd3b 100644 (file)
@@ -292,7 +292,7 @@ bool HistoryController::shouldStopLoadingForHistoryItem(HistoryItem& targetItem)
 // This includes recursion to handle loading into framesets properly
 void HistoryController::goToItem(HistoryItem& targetItem, FrameLoadType type)
 {
-    LOG(History, "HistoryController %p goToItem %p type=%d", this, &targetItem, type);
+    LOG(History, "HistoryController %p goToItem %p type=%d", this, &targetItem, static_cast<int>(type));
 
     ASSERT(!m_frame.tree().parent());