mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-24 14:45:53 +00:00
Fix Clang 14 compile warning
Disable "-Wtautological-constant-out-of-range-compare" when compiling "3rdparty/compressonator/BC6_Encode_kernel.cpp"
This commit is contained in:
committed by
Baldur Karlsson
parent
240fcf3373
commit
ac719cecd8
@@ -405,6 +405,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE)
|
||||
set_property(SOURCE 3rdparty/jpeg-compressor/jpge.cpp
|
||||
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-shorten-64-to-32")
|
||||
|
||||
set_property(SOURCE 3rdparty/compressonator/BC6_Encode_kernel.cpp
|
||||
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-tautological-constant-out-of-range-compare")
|
||||
|
||||
# Only clang has this warning. Fixing it in this file causes a compile error on windows
|
||||
set_source_files_properties(os/os_specific.cpp
|
||||
PROPERTIES COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-unused-lambda-capture")
|
||||
|
||||
Reference in New Issue
Block a user