diff options
author | comex <comexk@gmail.com> | 2020-11-23 17:24:37 -0500 |
---|---|---|
committer | comex <comexk@gmail.com> | 2020-11-27 17:42:02 -0500 |
commit | 32f3b6b8658f8eff5e2d0eb312811207a0db0b9f (patch) | |
tree | fb97baf289eed0b57d0af8e5e4ba0127f3c8152e /src | |
parent | 322349e8cc948d069f62a85a0c09a689c3e31796 (diff) |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 ) |