Title: [186207] trunk/Source/WTF
Revision
186207
Author
commit-qu...@webkit.org
Date
2015-07-01 17:07:50 -0700 (Wed, 01 Jul 2015)

Log Message

Ignore Visual Studio warning in SegmentedVector
https://bugs.webkit.org/show_bug.cgi?id=146514

Patch by Alex Christensen <achristen...@webkit.org> on 2015-07-01
Reviewed by Andreas Kling.

* wtf/SegmentedVector.h:
(WTF::SegmentedVector::deleteAllSegments):
Use pragmas to ignore the 0 element array warning.

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (186206 => 186207)


--- trunk/Source/WTF/ChangeLog	2015-07-02 00:05:40 UTC (rev 186206)
+++ trunk/Source/WTF/ChangeLog	2015-07-02 00:07:50 UTC (rev 186207)
@@ -1,3 +1,14 @@
+2015-07-01  Alex Christensen  <achristen...@webkit.org>
+
+        Ignore Visual Studio warning in SegmentedVector
+        https://bugs.webkit.org/show_bug.cgi?id=146514
+
+        Reviewed by Andreas Kling.
+
+        * wtf/SegmentedVector.h:
+        (WTF::SegmentedVector::deleteAllSegments):
+        Use pragmas to ignore the 0 element array warning.
+
 2015-07-01  Dean Jackson  <d...@apple.com>
 
         Disable the experimental WebGL2 implementation

Modified: trunk/Source/WTF/wtf/SegmentedVector.h (186206 => 186207)


--- trunk/Source/WTF/wtf/SegmentedVector.h	2015-07-02 00:05:40 UTC (rev 186206)
+++ trunk/Source/WTF/wtf/SegmentedVector.h	2015-07-02 00:07:50 UTC (rev 186207)
@@ -186,7 +186,14 @@
 
     private:
         struct Segment {
+#if COMPILER(MSVC)
+#pragma warning(push)
+#pragma warning(disable: 4200)
+#endif
             T entries[0];
+#if COMPILER(MSVC)
+#pragma warning(pop)
+#endif
         };
 
         void deleteAllSegments()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to