Browse Source

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).
nce_cpp
comex 5 years ago
parent
commit
674da91842
  1. 1
      src/CMakeLists.txt

1
src/CMakeLists.txt

@ -66,6 +66,7 @@ else()
-Wextra
-Wmissing-declarations
-Wno-attributes
-Wno-invalid-offsetof
-Wno-unused-parameter
)

Loading…
Cancel
Save