diff --git a/CMakeLists.txt b/CMakeLists.txt index dde1d8c..e9753fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,8 @@ add_compile_options(-fdata-sections -ffunction-sections) include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/third_party/valgrind) if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - add_compile_options(-Wno-maybe-uninitialized) + add_compile_options(-Wno-maybe-uninitialized + $<$:-Wno-invalid-offsetof>) endif() if(APPLE)