Reviewed-by: Qiu Shumin <shumin....@intel.com>

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Cohen, 
Eugene
Sent: Wednesday, November 25, 2015 3:35 AM
To: edk2-devel@lists.01.org; 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 <eug...@hp.com>

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to