mirror of https://github.com/acidanthera/audk.git
Vlv2TbltDevicePkg: Only define MDEPKG_NDEBUG for gcc release build
We only enable "-Wno-unused-but-set-variable" for the release build and gcc would complain that the varible passed to ASSERT_EFI_ERROR wasn't used in the debug build. Just don't define MDEPKG_NDEBUG for the debug build to make gcc happy with ASSERT_EFI_ERROR. Suggested-by: Laszlo Ersek <lersek@redhat.com> Cc: David Wei <david.wei@intel.com> CC: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <glin@suse.com>
This commit is contained in:
parent
69e16a2870
commit
9e9d992310
|
@ -1091,7 +1091,7 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
|
||||||
!endif
|
!endif
|
||||||
<BuildOptions>
|
<BuildOptions>
|
||||||
ICC:*_*_*_CC_FLAGS = -D MDEPKG_NDEBUG
|
ICC:*_*_*_CC_FLAGS = -D MDEPKG_NDEBUG
|
||||||
GCC:*_*_*_CC_FLAGS = -D MDEPKG_NDEBUG
|
GCC:RELEASE_*_*_CC_FLAGS = -D MDEPKG_NDEBUG
|
||||||
}
|
}
|
||||||
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
|
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
|
|
Loading…
Reference in New Issue