From: Daryl McDaniel Date: Tue, 11 Nov 2014 22:56:58 +0000 (+0000) Subject: StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with... X-Git-Tag: edk2-stable201903~10679 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=4b2cf923c0ffdb00cc05373d3f295f0ad086c978 StdLib/AppPkg: Add the NOOPT build target and fix a type conversion problem with VS2005. AppPkg.dsc: Remove IPF support and add NOOPT build target. StdLib.dsc: Add NOOPT build target. daConsole.c: Cast a comparison to BOOLEAN before assigning it to a BOOLEAN. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16331 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/AppPkg/AppPkg.dsc b/AppPkg/AppPkg.dsc index 32e046f9fb..fd76b4ec08 100644 --- a/AppPkg/AppPkg.dsc +++ b/AppPkg/AppPkg.dsc @@ -23,8 +23,8 @@ PLATFORM_VERSION = 0.01 DSC_SPECIFICATION = 0x00010006 OUTPUT_DIRECTORY = Build/AppPkg - SUPPORTED_ARCHITECTURES = IA32|IPF|X64|ARM|AARCH64 - BUILD_TARGETS = DEBUG|RELEASE + SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64 + BUILD_TARGETS = DEBUG|RELEASE|NOOPT SKUID_IDENTIFIER = DEFAULT # diff --git a/StdLib/LibC/Uefi/Devices/Console/daConsole.c b/StdLib/LibC/Uefi/Devices/Console/daConsole.c index 884e7017b4..d926a0c56e 100644 --- a/StdLib/LibC/Uefi/Devices/Console/daConsole.c +++ b/StdLib/LibC/Uefi/Devices/Console/daConsole.c @@ -361,7 +361,7 @@ da_ConRead( else { Stream = BASE_CR(filp->f_ops, ConInstance, Abstraction); Proto = (EFI_SIMPLE_TEXT_INPUT_PROTOCOL *)Stream->Dev; - BlockingMode = ((filp->Oflags & O_NONBLOCK) == 0); + BlockingMode = (BOOLEAN)((filp->Oflags & O_NONBLOCK) == 0); do { Status = EFI_SUCCESS; diff --git a/StdLib/StdLib.dsc b/StdLib/StdLib.dsc index 8077b045f8..43bd3e2cd7 100644 --- a/StdLib/StdLib.dsc +++ b/StdLib/StdLib.dsc @@ -28,7 +28,7 @@ DSC_SPECIFICATION = 0x00010006 OUTPUT_DIRECTORY = Build/StdLib SUPPORTED_ARCHITECTURES = IA32|X64|ARM - BUILD_TARGETS = DEBUG|RELEASE + BUILD_TARGETS = DEBUG|RELEASE|NOOPT SKUID_IDENTIFIER = DEFAULT #