Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spurious unused function warning when compiling crc32 with clang and ifunc support #53897

Merged
merged 4 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/crc32c.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ JL_DLLEXPORT uint32_t jl_crc32c(uint32_t crc, const char *buf, size_t len)
return crc32c_sse42(crc, buf, len);
}
# else
#if defined(JL_CRC32C_USE_IFUNC) && defined(_COMPILER_CLANG_)
JL_UNUSED
#endif
static crc32c_func_t crc32c_dispatch(void)
{
// When used in ifunc, we cannot call external functions (i.e. jl_cpuid)
Expand Down