[Bf-blender-cvs] [fced6f19be4] tmp-vulkan: Attempt 2 to silence warning.
Ankit Meel
noreply at git.blender.org
Thu Mar 11 20:11:19 CET 2021
Commit: fced6f19be49de9024de2c0fa657f1849dfb54a8
Author: Ankit Meel
Date: Fri Mar 12 00:41:13 2021 +0530
Branches: tmp-vulkan
https://developer.blender.org/rBfced6f19be49de9024de2c0fa657f1849dfb54a8
Attempt 2 to silence warning.
===================================================================
M source/blender/gpu/CMakeLists.txt
===================================================================
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index 60071741e86..2b22ce64478 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -419,6 +419,13 @@ endif()
blender_add_lib(bf_gpu "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
+ target_compile_options(bf_gpu
+ PRIVATE "-Wno-nullability-completeness"
+ )
+endif()
+
+
if(WITH_GTESTS)
if(WITH_OPENGL_DRAW_TESTS)
set(TEST_SRC
More information about the Bf-blender-cvs
mailing list