From: andrewfish Date: Mon, 30 Jan 2012 19:06:17 +0000 (+0000) Subject: Fix clang compiler warning. X-Git-Tag: edk2-stable201903~13676 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=94753eb940984221364e4e43bf3023c17f0ad1f9 Fix clang compiler warning. signed-off-by:andewfish reviewed-by:jcarsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12968 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c index fed38564e9..d6c3ef4e15 100644 --- a/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c +++ b/ShellPkg/Library/UefiShellDebug1CommandsLib/Bcfg.c @@ -948,7 +948,7 @@ BcfgAddOptDebug1( ShellStatus = SHELL_OUT_OF_RESOURCES; } if (ShellStatus == SHELL_SUCCESS) { - ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data); + ShellStatus = ShellReadFile(FileHandle, (UINTN *)&Intermediate, Data); } } else { Intermediate = StrSize(Data); diff --git a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c index 81d738964e..921ebe5485 100644 --- a/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c +++ b/ShellPkg/Library/UefiShellInstall1CommandsLib/Bcfg.c @@ -948,7 +948,7 @@ BcfgAddOptInstall1( ShellStatus = SHELL_OUT_OF_RESOURCES; } if (ShellStatus == SHELL_SUCCESS) { - ShellStatus = ShellReadFile(FileHandle, &((UINTN)Intermediate), Data); + ShellStatus = ShellReadFile(FileHandle, (UINTN *)&Intermediate, Data); } } else { Intermediate = StrSize(Data);