]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ia32/ProcessorBind.h
MdePkg IA32/X64 ProcessorBind.h : Disable the C4701 and C4703 warnings for VS2013.
[mirror_edk2.git] / MdePkg / Include / Ia32 / ProcessorBind.h
index 7beee20953b591a39c7bbb1968001584e5057209..22f07ca6375e01c5db2bb4a5dbe65e689c1fe368 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Processor or Compiler specific defines and types for IA-32 architecture.\r
 \r
-Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -93,6 +93,26 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 //\r
 #pragma warning ( disable : 4206 )\r
 \r
+#if _MSC_VER == 1800\r
+\r
+//\r
+// Disable these warnings for VS2013.\r
+//\r
+\r
+//\r
+// This warning is for potentially uninitialized local variable, and it may cause false \r
+// positive issues in VS2013 build\r
+//\r
+#pragma warning ( disable : 4701 )\r
+  \r
+//\r
+// This warning is for potentially uninitialized local pointer variable, and it may cause \r
+// false positive issues in VS2013 build\r
+//\r
+#pragma warning ( disable : 4703 )\r
+  \r
+#endif\r
+\r
 #endif\r
 \r
 \r
@@ -284,5 +304,9 @@ typedef INT32   INTN;
 **/\r
 #define FUNCTION_ENTRY_POINT(FunctionPointer) (VOID *)(UINTN)(FunctionPointer)\r
 \r
+#ifndef __USER_LABEL_PREFIX__\r
+#define __USER_LABEL_PREFIX__ _\r
+#endif\r
+\r
 #endif\r
 \r