Suppress gcc warning

Accept that our usage is non-portable: https://stackoverflow.com/questions/3129916/what-is-wrong-with-this-use-of-offsetof
This commit is contained in:
2024-02-22 12:37:14 -08:00
parent 3a5db2d2ac
commit 125ce88268

View File

@@ -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
$<$<COMPILE_LANGUAGE:CXX>:-Wno-invalid-offsetof>)
endif()
if(APPLE)