Reviewed-by: Qiu Shumin <[email protected]>
-----Original Message-----
From: edk2-devel [mailto:[email protected]] On Behalf Of Cohen,
Eugene
Sent: Wednesday, November 25, 2015 3:35 AM
To: [email protected]; Carsey, Jaben
Subject: [edk2] [PATCH] ShellPkg: fix RVCT warning due to CONST in typecast
Building the latest shell on RVCT exposed this warning:
ShellPkg\Application\Shell\Shell.c(1090,69): error #191-D: type qualifier is
meaningless on cast type
The CONST in the cast was deemed meaningless. Removing the CONST fixed the
warning.
---
edk2/ShellPkg/Application/Shell/Shell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/edk2/ShellPkg/Application/Shell/Shell.c
b/edk2/ShellPkg/Application/Shell/Shell.c
index cb9d969..88871ac 100644
--- a/edk2/ShellPkg/Application/Shell/Shell.c
+++ b/edk2/ShellPkg/Application/Shell/Shell.c
@@ -1087,7 +1087,7 @@ DoStartupScript(
}
Status = RunShellCommand(FileStringPath, &CalleeStatus);
if (ShellInfoObject.ShellInitSettings.BitUnion.Bits.Exit == TRUE) {
- ShellCommandRegisterExit(gEfiShellProtocol->BatchIsActive(), (CONST
UINT64)CalleeStatus);
+ ShellCommandRegisterExit(gEfiShellProtocol->BatchIsActive(),
(UINT64)CalleeStatus);
}
FreePool(FileStringPath);
return (Status);
--
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eugene Cohen <[email protected]>
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel