Title: [92449] trunk/Source/WebCore
Revision
92449
Author
[email protected]
Date
2011-08-04 23:05:51 -0700 (Thu, 04 Aug 2011)

Log Message

Unreviewed build fix.  gcc 4.5 can't figure out that the 'data' variables are always initialized in these functions.

* bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
(WebCore::jsArrayToFloatArray):
(WebCore::jsArrayToIntArray):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (92448 => 92449)


--- trunk/Source/WebCore/ChangeLog	2011-08-05 06:04:52 UTC (rev 92448)
+++ trunk/Source/WebCore/ChangeLog	2011-08-05 06:05:51 UTC (rev 92449)
@@ -1,3 +1,11 @@
+2011-08-04  James Robinson  <[email protected]>
+
+        Unreviewed build fix.  gcc 4.5 can't figure out that the 'data' variables are always initialized in these functions.
+
+        * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
+        (WebCore::jsArrayToFloatArray):
+        (WebCore::jsArrayToIntArray):
+
 2011-08-05  Roland Steiner  <[email protected]>
 
         Improve const-correctness in CSS code: type information methods

Modified: trunk/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp (92448 => 92449)


--- trunk/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp	2011-08-05 06:04:52 UTC (rev 92448)
+++ trunk/Source/WebCore/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp	2011-08-05 06:05:51 UTC (rev 92449)
@@ -74,7 +74,7 @@
 static float* jsArrayToFloatArray(v8::Handle<v8::Array> array, uint32_t len)
 {
     // Convert the data element-by-element.
-    float* data;
+    float* data = ""
     if (len > std::numeric_limits<uint32_t>::max() / sizeof(float)
         || !tryFastMalloc(len * sizeof(float)).getValue(data))
         return 0;
@@ -94,7 +94,7 @@
 static int* jsArrayToIntArray(v8::Handle<v8::Array> array, uint32_t len)
 {
     // Convert the data element-by-element.
-    int* data;
+    int* data = ""
     if (len > std::numeric_limits<uint32_t>::max() / sizeof(int)
         || !tryFastMalloc(len * sizeof(int)).getValue(data))
         return 0;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to