[Win] Warning fixes.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2016 17:36:15 +0000 (17:36 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2016 17:36:15 +0000 (17:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=161241

Reviewed by Brent Fulgham.

MSVC warns about potential use of uninitialized variables.

* accessibility/AXObjectCache.cpp:
* css/parser/CSSParserValues.cpp:

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

Source/WebCore/ChangeLog
Source/WebCore/accessibility/AXObjectCache.cpp
Source/WebCore/css/parser/CSSParserValues.cpp

index 49d391c..1fb4aff 100644 (file)
@@ -1,3 +1,15 @@
+2016-08-26  Per Arne Vollan  <pvollan@apple.com>
+
+        [Win] Warning fixes.
+        https://bugs.webkit.org/show_bug.cgi?id=161241
+
+        Reviewed by Brent Fulgham.
+
+        MSVC warns about potential use of uninitialized variables.
+
+        * accessibility/AXObjectCache.cpp:
+        * css/parser/CSSParserValues.cpp:
+
 2016-08-26  Eric Carlson  <eric.carlson@apple.com>
 
         [MediaStream] Add support for OverConstrainedErrorEvent
index 5856862..6319fd0 100644 (file)
 #include "MediaControlElements.h"
 #endif
 
+#if COMPILER(MSVC)
+// See https://msdn.microsoft.com/en-us/library/1wea5zwe.aspx
+#pragma warning(disable: 4701)
+#endif
+
 namespace WebCore {
 
 using namespace HTMLNames;
index 669aa0a..c5bc2bd 100644 (file)
 #include "CSSVariableValue.h"
 #include "SelectorPseudoTypeMap.h"
 
+#if COMPILER(MSVC)
+// See https://msdn.microsoft.com/en-us/library/1wea5zwe.aspx
+#pragma warning(disable: 4701)
+#endif
+
 namespace WebCore {
 
 using namespace WTF;