]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: HttpBootDxe: fix gcc build failure.
authorLaszlo Ersek <lersek@redhat.com>
Tue, 8 Mar 2016 03:12:57 +0000 (11:12 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Tue, 8 Mar 2016 03:12:57 +0000 (11:12 +0800)
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>
NetworkPkg/HttpBootDxe/HttpBootConfig.c

index db14da06d5cb0da687f05cb11a068978c8170f3e..597192349d6b0c28b89baaaac29727c5c527bc9a 100644 (file)
@@ -143,7 +143,7 @@ HttpBootAddBootOption (
   Status = GetVariable2 (\r
              L"BootOrder",\r
              &gEfiGlobalVariableGuid,\r
-             &CurrentOrder,\r
+             (VOID **)&CurrentOrder,\r
              &Length \r
              );\r
   if (EFI_ERROR (Status) && Status != EFI_NOT_FOUND) {\r