From 224c1c1ec1569b0688d7cf9e95f5186e21f96677 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 23 Dec 2023 21:11:50 -0800 Subject: [PATCH] CMake: added -Wno-invalid-offsetof clang switch --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f295b385e..33b67f0f83 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -443,7 +443,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") -Wall -Wextra -Wuninitialized -Wconditional-uninitialized -Wextra-tokens -Wpointer-arith -Wloop-analysis -Wunused # Disable few warnings -Wno-overloaded-virtual -Wno-incompatible-pointer-types-discards-qualifiers -Wno-unknown-pragmas - -Wno-zero-as-null-pointer-constant -Wno-unused-parameter + -Wno-zero-as-null-pointer-constant -Wno-unused-parameter -Wno-invalid-offsetof ) target_compile_options(Diligent-BuildSettings INTERFACE "$<$:${DILIGENT_CLANG_DEBUG_COMPILE_OPTIONS}>")