From 7849538e0e3453db93a3ce8875b73121e7088e3a Mon Sep 17 00:00:00 2001 From: Michael Kinney Date: Thu, 7 May 2015 17:19:11 +0000 Subject: 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 Reviewed-by: lhauch Tested-by: Chao Zhang git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17361 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Base.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'MdePkg/Include') diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index def5aa6184..85ed34f088 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -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.
+Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -27,6 +27,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // #include +#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. -- cgit v1.2.3