summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
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/GraphicsEngineOpenGL
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/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/CMakeLists.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
index 0039de56..bbaf59c5 100644
--- a/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
+++ b/Graphics/GraphicsEngineOpenGL/CMakeLists.txt
@@ -192,6 +192,26 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# as hiding is intended
target_compile_options(Diligent-GraphicsEngineOpenGL-static PRIVATE -Wno-overloaded-virtual)
target_compile_options(Diligent-GraphicsEngineOpenGL-shared PRIVATE -Wno-overloaded-virtual)
+
+ # Disable warings like this one:
+ # comparison of function 'glPolygonMode' not equal to a null pointer is always true [-Wtautological-pointer-compare]
+ set_source_files_properties(src/RenderDeviceGLImpl.cpp src/GLContextState.cpp
+ PROPERTIES
+ COMPILE_FLAGS -Wno-tautological-pointer-compare
+ )
+
+ if (PLATFORM_IOS)
+ # Disable warings like this one:
+ # unused variable 'BottomLeftY' [-Wunused-variable]
+ set_source_files_properties(
+ src/DeviceContextGLImpl.cpp
+ src/GLContextState.cpp
+ src/RenderDeviceGLImpl.cpp
+ src/Texture1D_OGL.cpp
+ PROPERTIES
+ COMPILE_FLAGS -Wno-unused-variable
+ )
+ endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set_target_properties(Diligent-GraphicsEngineOpenGL-shared PROPERTIES
# Disallow missing direct and indirect dependencies to enssure that .so is self-contained