Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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