From a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 3 Feb 2020 15:38:06 -0800 Subject: Silenced a bunch of clang warnings --- Graphics/GLSLTools/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Graphics/GLSLTools') diff --git a/Graphics/GLSLTools/CMakeLists.txt b/Graphics/GLSLTools/CMakeLists.txt index 239342e6..2962c669 100644 --- a/Graphics/GLSLTools/CMakeLists.txt +++ b/Graphics/GLSLTools/CMakeLists.txt @@ -25,6 +25,14 @@ if(VULKAN_SUPPORTED) list(APPEND INCLUDE include/SPIRVUtils.hpp ) + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") + # Disable the following warning: + # moving a local object in a return statement prevents copy elision [-Wpessimizing-move] + set_source_files_properties(src/SPIRVUtils.cpp + PROPERTIES + COMPILE_FLAGS -Wno-pessimizing-move + ) + endif() endif() endif() @@ -80,4 +88,4 @@ set_target_properties(Diligent-GLSLTools PROPERTIES if(DILIGENT_INSTALL_CORE) install_core_lib(Diligent-GLSLTools) -endif() \ No newline at end of file +endif() -- cgit v1.2.3