diff --git a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf index 525e92408d..6d9ce87b0b 100644 --- a/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf +++ b/MdeModulePkg/Library/BrotliCustomDecompressLib/BrotliCustomDecompressLib.inf @@ -71,3 +71,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