MdePkg: Fix build error after enable FDT support.

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4786

Disable some compiling warnings caused by submodule code.
Those can be removed later once issues fixed by submodule owner.

Signed-off-by: Linus Liu <linus.liu@intel.com>
This commit is contained in:
Linus Liu 2024-08-21 01:03:26 -07:00 committed by mergify[bot]
parent 90d0ec17e7
commit c3997e329a

View File

@ -57,6 +57,9 @@
BaseMemoryLib
[BuildOptions]
MSFT:*_*_IA32_CC_FLAGS = /wd4146 /wd4245
MSFT:*_*_X64_CC_FLAGS = /wd4146 /wd4244 /wd4245 /wd4267
# warning C4706: assignment within conditional expression
# if ((err = fdt_splice_(fdt, p, oldlen, newlen)))
# in BaseFdtLib\libfdt\libfdt\fdt_rw.c (wait for sub module update to remove this)
MSFT:*_*_IA32_CC_FLAGS = /wd4146 /wd4245 /wd4706
MSFT:*_*_X64_CC_FLAGS = /wd4146 /wd4244 /wd4245 /wd4267 /wd4706