Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: a4610f9cfef179f2013156da9768039f52519f04
https://github.com/tianocore/edk2/commit/a4610f9cfef179f2013156da9768039f52519f04
Author: Sunil Dora <[email protected]>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M CryptoPkg/Library/IntrinsicLib/CopyMem.c
Log Message:
-----------
CryptoPkg: Fix memcpy alias prototype to match the aliasee
The memcpy alias in IntrinsicLib declares its count parameter as
unsigned int while the aliasee __memcpy uses size_t. On 64-bit targets
these are different widths. clang 23 diagnoses this through
-Wattribute-alias:
CopyMem.c:29:17: warning: alias and aliasee have different types
'void *(void *, const void *, unsigned int)' and
'void *(void *, const void *, size_t)' [-Wattribute-alias]
and builds that treat warnings as errors fail, e.g. OVMF built with
the CLANGDWARF toolchain in Yocto.
Declare the alias with size_t so both signatures agree.
Signed-off-by: Sunil Dora <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits