diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2024-05-13 11:01:26 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-05-30 04:18:49 +0000 |
commit | 843f2d0964bd0444fa6bdbb1ee79dc838cfa4452 (patch) | |
tree | e2d984b3618bc2ff0968a16e93cd300639cbad06 | |
parent | 30b6d08e27c767ba9756a244099d73c826abcc8d (diff) | |
download | edk2-843f2d0964bd0444fa6bdbb1ee79dc838cfa4452.tar.gz edk2-843f2d0964bd0444fa6bdbb1ee79dc838cfa4452.tar.bz2 edk2-843f2d0964bd0444fa6bdbb1ee79dc838cfa4452.zip |
EmulatorPkg: fix build error.
GasketSecSetTime is EMU_SET_TIME and returns EFI_STATUS. Fix the
declaration accordingly. Fixes build error with gcc 14.
/home/kraxel/projects/edk2/EmulatorPkg/Unix/Host/EmuThunk.c:429:3: error: initialization of ‘EFI_STATUS (__attribute__((ms_abi)) *)(EFI_TIME *)’ {aka ‘long long unsigned int (__attribute__((ms_abi)) *)(EFI_TIME *)’} from incompatible pointer type ‘void (__attribute__((ms_abi)) *)(EFI_TIME *)’ [-Wincompatible-pointer-types]
429 | GasketSecSetTime,
| ^~~~~~~~~~~~~~~~
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | EmulatorPkg/Unix/Host/Gasket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EmulatorPkg/Unix/Host/Gasket.h b/EmulatorPkg/Unix/Host/Gasket.h index 6dafc903cf..71b459ddd8 100644 --- a/EmulatorPkg/Unix/Host/Gasket.h +++ b/EmulatorPkg/Unix/Host/Gasket.h @@ -140,7 +140,7 @@ GasketSecGetTime ( OUT EFI_TIME_CAPABILITIES *Capabilities OPTIONAL
);
-VOID
+EFI_STATUS
EFIAPI
GasketSecSetTime (
IN EFI_TIME *Time
|