From 9e271a198c2507c202ae56eae832578f7cf57ca3 Mon Sep 17 00:00:00 2001 From: Mikhail Krichanov Date: Mon, 17 Jul 2023 11:03:52 +0300 Subject: [PATCH] BaseUefiImageLib: Ignore warning C4204: nonstandard extension used: non-constant aggregate initializer. --- MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf | 1 + MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf | 1 + MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf | 1 + 3 files changed, 3 insertions(+) diff --git a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf index 152e5123a7..6ad64cb959 100644 --- a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf +++ b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageAllLib.inf @@ -45,3 +45,4 @@ [BuildOptions] *_*_*_CC_FLAGS = -DUEFI_IMAGE_FORMAT_SUPPORT_SOURCES=0x03 + MSFT:*_*_*_CC_FLAGS = /wd4204 diff --git a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf index f3f4ff808b..cbdcc58644 100644 --- a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf +++ b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyFvLib.inf @@ -44,3 +44,4 @@ [BuildOptions] *_*_*_CC_FLAGS = -DUEFI_IMAGE_FORMAT_SUPPORT_SOURCES=0x02 + MSFT:*_*_*_CC_FLAGS = /wd4204 diff --git a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf index 93543a2931..3c8f23e895 100644 --- a/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf +++ b/MdePkg/Library/BaseUefiImageLib/BaseUefiImageOnlyNonFvLib.inf @@ -45,3 +45,4 @@ [BuildOptions] *_*_*_CC_FLAGS = -DUEFI_IMAGE_FORMAT_SUPPORT_SOURCES=0x01 + MSFT:*_*_*_CC_FLAGS = /wd4204