* [edk2-devel] [PATCH 1/1] EmulatorPkg: fix build error.
@ 2024-05-28 14:57 Gerd Hoffmann
0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2024-05-28 14:57 UTC (permalink / raw)
To: devel; +Cc: Oliver Steffen, Gerd Hoffmann, Andrew Fish, Ray Ni
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,
| ^~~~~~~~~~~~~~~~
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
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 6dafc903cfce..71b459ddd8c7 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
--
2.45.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#119309): https://edk2.groups.io/g/devel/message/119309
Mute This Topic: https://groups.io/mt/106350150/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-28 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 14:57 [edk2-devel] [PATCH 1/1] EmulatorPkg: fix build error Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox