From c0dd4b6d0fdfbc708f0eaf434407b78cc1044e0f Mon Sep 17 00:00:00 2001 From: Savva Mitrofanov Date: Fri, 3 Feb 2023 17:44:30 +0600 Subject: [PATCH] MdeModulePkg/BrotliCustomDecompressLib: Disable C4559 MSVC warning Disables redefinition warning due to win 10 sdk to fix build using MSVC toolchain Signed-off-by: Savva Mitrofanov --- .../BrotliCustomDecompressLib.inf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf index a96d553ccd..5ded352e2c 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf @@ -76,3 +76,12 @@ DebugLib BaseMemoryLib ExtractGuidedSectionLib + +[BuildOptions] + # + # Disables the following Visual Studio compiler warnings brought by brotli source, + # so we do not break the build with /WX option: + # C4559: 'function' : redefinition; the function gains __declspec(restrict) + # + MSFT:*_*_IA32_CC_FLAGS = /wd4559 + MSFT:*_*_X64_CC_FLAGS = /wd4559