From 32f3b6b8658f8eff5e2d0eb312811207a0db0b9f Mon Sep 17 00:00:00 2001 From: comex Date: Mon, 23 Nov 2020 17:24:37 -0500 Subject: CMakeLists: disable -Winvalid-offsetof This Clang warning complains when offsetof is used on a non-standard-layout type (i.e. any class using various C++ features), even though it works fine (and is not undefined behavior as of C++17). --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dbda528ce..a22b564d6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -66,6 +66,7 @@ else() -Wextra -Wmissing-declarations -Wno-attributes + -Wno-invalid-offsetof -Wno-unused-parameter ) -- cgit v1.2.3