mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-26 12:20:25 +00:00
Release notes: https://github.com/wolfcw/libfaketime/blob/v0.9.13/NEWS Drop 0001-Add-const-qualifiers-to-fix-build-with-ISO-C23.patch, it is merged upstream via PR #525. Add a patch to fix the build with clang 23, which added -Wunused-but-set-global and turns the -Werror in src/Makefile into: libfaketime.c:340:23: error: variable 'real_lstat' set but not used [-Werror,-Wunused-but-set-global] ftpl_init() resolves every real_* pointer up front by design, so the ones whose wrappers are not compiled on Linux/glibc end up written and never read. Annotate those with __attribute__((unused)) rather than adding -Wno-error=unused-but-set-global to CFLAGS, since the Makefile has no flag-probing and older clang rejects the unknown warning group under the same -Werror. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>