Revision: 17361
http://sourceforge.net/p/edk2/code/17361
Author: mdkinney
Date: 2015-05-07 17:19:11 +0000 (Thu, 07 May 2015)
Log Message:
-----------
MdePkg/Include: Add support for flexible array members
Use pragma to disable warning 4200 for all VS* and DDK* tool chains to support
data structure declarations where the last field of the data structure is a
flexible array member.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <[email protected]>
Reviewed-by: lhauch <[email protected]>
Tested-by: Chao Zhang <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdePkg/Include/Base.h
Modified: trunk/edk2/MdePkg/Include/Base.h
===================================================================
--- trunk/edk2/MdePkg/Include/Base.h 2015-05-07 15:40:31 UTC (rev 17360)
+++ trunk/edk2/MdePkg/Include/Base.h 2015-05-07 17:19:11 UTC (rev 17361)
@@ -6,7 +6,7 @@
environment. There are a set of base libraries in the Mde Package that can
be used to implement base modules.
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD
License
@@ -27,6 +27,12 @@
//
#include <ProcessorBind.h>
+#if defined(_MSC_EXTENSIONS)
+//
+// Disable warning when last field of data structure is a zero sized array.
+//
+#pragma warning ( disable : 4200 )
+#endif
/**
Verifies the storage size of a given data type.
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits