mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-07 19:45:07 +02:00
NetworkPkg: HttpBootDxe: fix gcc build failure.
Commit fa848a404894 ("NetworkPkg: Add URI configuration form to HTTP boot driver") causes the build to fail with gcc: > NetworkPkg/HttpBootDxe/HttpBootConfig.c: In function > 'HttpBootAddBootOption': > NetworkPkg/HttpBootDxe/HttpBootConfig.c:148:14: > error: passing argument 3 of 'GetVariable2' from incompatible pointer > type [-Werror] > ); > ^ > In file included from NetworkPkg/HttpBootDxe/HttpBootDxe.h:31:0, > from NetworkPkg/HttpBootDxe/HttpBootConfig.c:15: > MdePkg/Include/Library/UefiLib.h:708:1: note: expected 'void **' but > argument is of type 'CHAR16 **' > GetVariable2 ( > ^ > cc1: all warnings being treated as errors Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
parent
e968e800ce
commit
8244e19776
@ -143,7 +143,7 @@ HttpBootAddBootOption (
|
||||
Status = GetVariable2 (
|
||||
L"BootOrder",
|
||||
&gEfiGlobalVariableGuid,
|
||||
&CurrentOrder,
|
||||
(VOID **)&CurrentOrder,
|
||||
&Length
|
||||
);
|
||||
if (EFI_ERROR (Status) && Status != EFI_NOT_FOUND) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user