]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg: fix "incompatible pointer type" build error
authorGabriel Somlo <somlo@cmu.edu>
Wed, 8 Oct 2014 20:38:05 +0000 (20:38 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 8 Oct 2014 20:38:05 +0000 (20:38 +0000)
Following commit 7fe3fbad05cd6ef23e83ab5da8c5a82ff9bb456e, building
OvmfPkg on Linux breaks with an "incompatible pointer type" error.
This patch adds a cast to supress the warning and allow the build
to complete

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Gabriel Somlo <somlo@cmu.edu>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16198 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/UefiShellLevel2CommandsLib/Mv.c

index 4dbc6d591ea40b86cc879e3b9c95e60295d2998b..e3af4c8cb177e285b3644038a996393859379275 100644 (file)
@@ -507,7 +507,7 @@ ValidateAndMoveFiles(
     SHELL_FREE_NON_NULL(FullDestPath);\r
     FullDestPath = NULL;\r
     if (ShellIsDirectory(DestPath)==EFI_SUCCESS) {\r
-      CreateFullDestPath(&DestPath, &FullDestPath, Node->FileName);\r
+      CreateFullDestPath((CONST CHAR16 **)&DestPath, &FullDestPath, Node->FileName);\r
     }\r
 \r
     //\r