From 843f2d0964bd0444fa6bdbb1ee79dc838cfa4452 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 13 May 2024 11:01:26 +0200 Subject: [PATCH] EmulatorPkg: fix build error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- EmulatorPkg/Unix/Host/Gasket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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