[CMake] Disable newly added compiler warning -Wnrvo (#2210)

Recently a new warning was added to Clang to warn when no copy-elision
on return happens. That prevents our CK build. This disables the
warning.

[ROCm/composable_kernel commit: 0970f22221]
This commit is contained in:
Jan Patrick Lehr
2025-05-20 02:30:15 +02:00
committed by GitHub
parent 1d9c3ecf4f
commit 8f1ae91af0

View File

@@ -94,6 +94,9 @@ add_compile_options(-Wno-pass-failed)
add_compile_options(-Wno-switch-default)
add_compile_options(-Wno-unique-object-duplication)
# Recent change in compiler makes this warning ON by default, which led to compile errors.
add_compile_options(-Wno-nrvo)
if(NOT DISABLE_DL_KERNELS)
add_definitions(-DDL_KERNELS)
set(DL_KERNELS "ON")