Daryl,

What are the plans for fixing the socket code to pass with VS2015?  I just want 
to know how long this temporary patch will be around.

Thanks,
-Erik

From: Daryl McDaniel [mailto:edk2-li...@mc2research.org]
Sent: Sunday, January 3, 2016 2:21 PM
To: edk2-devel@lists.01.org; Carsey, Jaben <jaben.car...@intel.com>; Bjorge, 
Erik C <erik.c.bjo...@intel.com>
Subject: [PATCH] StdLib: Temporarily restrict compiler warnings so that sockets 
can be built using VS2015.


StdLib: Temporarily restrict compiler warnings so that sockets can be built 
using VS2015.



Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Daryl McDaniel 
<edk2-li...@mc2research.org<mailto:edk2-li...@mc2research.org>>



---

diff U3 a/StdLib/StdLib.inc b/StdLib/StdLib.inc

--- a/StdLib/StdLib.inc Tue Aug 11 21:25:12 2015

+++ b/StdLib/StdLib.inc Sun Jan 03 12:17:42 2016

@@ -5,6 +5,7 @@

# The including DSC file must DEFINE the EMULATE macro if

# the application is to be run in an emulation environment.

#

+#  Copyright (c) 2016, Daryl McDaniel. All rights reserved.<BR>

#  Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>

#  This program and the accompanying materials

#  are licensed and made available under the terms and conditions of the BSD 
License

@@ -133,3 +134,12 @@

     RVCT:*_*_*_CC_FLAGS     = --library_interface=none -DUEFI_C_SOURCE 
-J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm

    XCODE:*_*_*_CC_FLAGS     = -nostdinc -nostdlib -DUEFI_C_SOURCE 
-Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized

!endif

+

+  # Temporarily restrict compiler warnings to those produced by VS2012.

+  # Code that fails when these flags are removed will have to be rewritten

+  # in order to pass.  This may be as simple as renaming an object, but may

+  # require more significant changes.

+    MSFT:*_VS2015_*_CC_FLAGS          = /Wv:11

+    MSFT:*_VS2015x86_*_CC_FLAGS       = /Wv:11

+    MSFT:*_VS2015xASL_*_CC_FLAGS      = /Wv:11

+    MSFT:*_VS2015x86xASL_*_CC_FLAGS   = /Wv:11

--

Daryl McDaniel



_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to