mirror of https://github.com/acidanthera/audk.git
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 <michael.d.kinney@intel.com> Reviewed-by: lhauch <larry.hauch@intel.com> Tested-by: Chao Zhang <chao.b.zhang@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17361 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0ee59fd7d0
commit
7849538e0e
|
@ -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 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
//
|
||||
#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.
|
||||
|
|
Loading…
Reference in New Issue