The function CompareFileNameInAlphabet() is passed by pointer to a generic sorting function. Said pointer declares a function type with the EFIAPI calling convention. As CompareFileNameInAlphabet() lacks said specifier, this causes build issues with toolchains that do not use the EFIAPI calling convention by default, such as CLANG38.
Add the missing specifier to resolve the issue. Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Hao A Wu <hao.a...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Guomin Jiang <guomin.ji...@intel.com> Cc: Vitaly Cheptsov <vit9...@protonmail.com> Signed-off-by: Marvin Häuser <mhaeu...@posteo.de> --- MdeModulePkg/Application/CapsuleApp/CapsuleDump.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c index 5725e2f6dd5b..30a4a984f318 100644 --- a/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c +++ b/MdeModulePkg/Application/CapsuleApp/CapsuleDump.c @@ -622,6 +622,7 @@ SplitFileNameExtension ( **/ INTN +EFIAPI CompareFileNameInAlphabet ( IN VOID *Left, IN VOID *Right -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#79315): https://edk2.groups.io/g/devel/message/79315 Mute This Topic: https://groups.io/mt/84909445/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-