summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-02-03 23:38:06 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-02-03 23:38:06 +0000
commita8e37f967bec33dfe131a4eb8f8739fa2bf6d98c (patch)
tree7b51a1ceada129e833ef9bf8c1d0ca8cdb3bb76f /Graphics/GraphicsEngineVulkan
parentDisallowed missing direct and indirect dependencies when linking GL and VK sh... (diff)
downloadDiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.tar.gz
DiligentCore-a8e37f967bec33dfe131a4eb8f8739fa2bf6d98c.zip
Silenced a bunch of clang warnings
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index 9300a081..baf08498 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -217,6 +217,13 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# as hiding is intended
target_compile_options(Diligent-GraphicsEngineVk-static PRIVATE -Wno-overloaded-virtual)
target_compile_options(Diligent-GraphicsEngineVk-shared PRIVATE -Wno-overloaded-virtual)
+
+ # Disable the following warning:
+ # moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
+ set_source_files_properties(src/CommandPoolManager.cpp src/VulkanUtilities/VulkanDebug.cpp
+ PROPERTIES
+ COMPILE_FLAGS -Wno-pessimizing-move
+ )
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set_target_properties(Diligent-GraphicsEngineVk-shared PROPERTIES
# Disallow missing direct and indirect dependencies to enssure that .so is self-contained