From 698e22a5ae0b86e56e4ae6f02887927c9399820b Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 18 Feb 2021 17:21:36 +0000 Subject: [PATCH] Suppress warning about self-assignment that we are deliberately testing --- renderdoc/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index c0f09c07b..604d0feb4 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -389,6 +389,10 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE) # 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") + + # We are deliberately testing self-assign here + set_source_files_properties(replay/basic_types_tests.cpp + PROPERTIES COMPILE_FLAGS "-Wno-unknown-warning-option -Wno-self-assign-overloaded") endif() endif()