summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2020-11-23 17:24:37 -0500
committercomex <comexk@gmail.com>2020-11-27 17:42:02 -0500
commit32f3b6b8658f8eff5e2d0eb312811207a0db0b9f (patch)
treefb97baf289eed0b57d0af8e5e4ba0127f3c8152e /src
parent322349e8cc948d069f62a85a0c09a689c3e31796 (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.txt1
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
)