Title: [147922] trunk/Source/WebCore
Revision
147922
Author
[email protected]
Date
2013-04-08 10:04:30 -0700 (Mon, 08 Apr 2013)

Log Message

Fix the build with strict GCC 4.8

Unreviewed build fix.

Initialize dragImage to suppress GCC's warning about it being possibly used uninitialized,
which results is a build failure with GCC 4.8 that sets -Werror=maybe-uninitialized.

No new tests needed.

* page/DragController.cpp:
(WebCore::DragController::doImageDrag):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (147921 => 147922)


--- trunk/Source/WebCore/ChangeLog	2013-04-08 16:52:09 UTC (rev 147921)
+++ trunk/Source/WebCore/ChangeLog	2013-04-08 17:04:30 UTC (rev 147922)
@@ -1,3 +1,17 @@
+2013-04-08  Andras Becsi  <[email protected]>
+
+        Fix the build with strict GCC 4.8
+
+        Unreviewed build fix.
+
+        Initialize dragImage to suppress GCC's warning about it being possibly used uninitialized,
+        which results is a build failure with GCC 4.8 that sets -Werror=maybe-uninitialized.
+
+        No new tests needed.
+
+        * page/DragController.cpp:
+        (WebCore::DragController::doImageDrag):
+
 2013-04-08  Zan Dobersek  <[email protected]>
 
         Remove the unused LayoutTestSupport class

Modified: trunk/Source/WebCore/page/DragController.cpp (147921 => 147922)


--- trunk/Source/WebCore/page/DragController.cpp	2013-04-08 16:52:09 UTC (rev 147921)
+++ trunk/Source/WebCore/page/DragController.cpp	2013-04-08 17:04:30 UTC (rev 147922)
@@ -867,7 +867,7 @@
 void DragController::doImageDrag(Element* element, const IntPoint& dragOrigin, const IntRect& rect, Clipboard* clipboard, Frame* frame, IntPoint& dragImageOffset)
 {
     IntPoint mouseDownPoint = dragOrigin;
-    DragImageRef dragImage;
+    DragImageRef dragImage = 0;
     IntPoint origin;
 
     Image* image = getImage(element);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to