Skip to content

Conversation

arun-chandran-edarath
Copy link
Contributor

@arun-chandran-edarath arun-chandran-edarath commented Aug 19, 2025

What?

Fixes the below compile error with gcc 15.1

CC vfs/base/libucs_la-vfs_obj.lo CC vfs/base/libucs_la-vfs_cb.lo arch/x86_64/cpu.c:502:5: error: conflicting types for ‘ucs_arch_get_cpu_flag’ due to enum/integer mismatch; have ‘int(void)’ [-Werror=enum-int-mismatch] 502 | int ucs_arch_get_cpu_flag() | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/ucs/arch/cpu.h:106, from arch/x86_64/cpu.c:15:

src/ucs/arch/x86_64/cpu.h:54:16: note: previous declaration of ‘ucs_arch_get_cpu_flag’ with type ‘ucs_cpu_flag_t(void)’ {aka ‘enum ucs_cpu_flag(void)’} 54 | ucs_cpu_flag_t ucs_arch_get_cpu_flag() UCS_F_NOOPTIMIZE; | ^~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors

yosefe
yosefe previously approved these changes Aug 19, 2025
Signed-off-by: Arun Chandran <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants