mirror of
https://github.com/rt64/rt64.git
synced 2025-03-14 04:19:02 +00:00
Disable function type cast mismatch warning on clang (for imgui)
This commit is contained in:
parent
1db8c347ca
commit
af01aca86f
@ -76,6 +76,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-Wall -Wextra)
|
||||
endif()
|
||||
add_compile_options(-Wno-nullability-completeness -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-but-set-variable -Wno-missing-field-initializers)
|
||||
# imgui currently triggers some compiler warnings on clang 19 for function casts which leads to a failed build, so disable that warning on clang 19+
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0)
|
||||
add_compile_options(-Wno-cast-function-type-mismatch)
|
||||
endif()
|
||||
add_compile_options(-Werror)
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user