Skip to content

Commit d055945

Browse files
authored
Workaround Clang 20 float override warnings (#500)
1 parent f0e8a01 commit d055945

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Source/UnitTest/cmake_core.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ target_compile_options(${ASTCENC_TEST}
5959
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-c++98-compat-pedantic>
6060
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-c++98-c++11-compat-pedantic>
6161
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-float-equal>
62+
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-overriding-option>
6263

6364
# Ignore things that the googletest build triggers
6465
$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:-Wno-unknown-warning-option>

Source/cmake_core.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
176176
$<${is_gnu_fe}:-Wno-float-equal>
177177
$<${is_gnu_fe}:-Wno-deprecated-declarations>
178178
$<${is_gnu_fe}:-Wno-atomic-implicit-seq-cst>
179+
$<${is_clang}:-Wno-overriding-option>
179180

180181
# Clang 10 also throws up warnings we need to investigate (ours)
181182
$<${is_gnu_fe}:-Wno-cast-align>

0 commit comments

Comments
 (0)