summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2024-05-13 11:01:26 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-05-30 04:18:49 +0000
commit843f2d0964bd0444fa6bdbb1ee79dc838cfa4452 (patch)
treee2d984b3618bc2ff0968a16e93cd300639cbad06
parent30b6d08e27c767ba9756a244099d73c826abcc8d (diff)
downloadedk2-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.h2
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