]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: fix RVCT warning due to CONST in typecast.
authorCohen Eugene <eugene@hp.com>
Thu, 26 Nov 2015 01:04:41 +0000 (01:04 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 26 Nov 2015 01:04:41 +0000 (01:04 +0000)
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.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cohen Eugene <eugene@hp.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18954 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/Shell/Shell.c

index 8af66479a3b40135972bae96532b89756b5c22e9..36063227a2d84f723ec8d9ce92028f2f3c16d740 100644 (file)
@@ -1087,7 +1087,7 @@ DoStartupScript(
     }\r
     Status = RunShellCommand(FileStringPath, &CalleeStatus);\r
     if (ShellInfoObject.ShellInitSettings.BitUnion.Bits.Exit == TRUE) {\r
-      ShellCommandRegisterExit(gEfiShellProtocol->BatchIsActive(), (CONST UINT64)CalleeStatus);\r
+      ShellCommandRegisterExit(gEfiShellProtocol->BatchIsActive(), (UINT64)CalleeStatus);\r
     }\r
     FreePool(FileStringPath);\r
     return (Status);\r