diff options
| author | 2020-11-23 17:24:37 -0500 | |
|---|---|---|
| committer | 2020-11-27 17:42:02 -0500 | |
| commit | 32f3b6b8658f8eff5e2d0eb312811207a0db0b9f (patch) | |
| tree | fb97baf289eed0b57d0af8e5e4ba0127f3c8152e | |
| parent | Merge pull request #4975 from comex/invalid-syncpoint-id (diff) | |
| download | yuzu-32f3b6b8658f8eff5e2d0eb312811207a0db0b9f.tar.gz yuzu-32f3b6b8658f8eff5e2d0eb312811207a0db0b9f.tar.xz yuzu-32f3b6b8658f8eff5e2d0eb312811207a0db0b9f.zip | |
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).
| -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() | |||
| 66 | -Wextra | 66 | -Wextra |
| 67 | -Wmissing-declarations | 67 | -Wmissing-declarations |
| 68 | -Wno-attributes | 68 | -Wno-attributes |
| 69 | -Wno-invalid-offsetof | ||
| 69 | -Wno-unused-parameter | 70 | -Wno-unused-parameter |
| 70 | ) | 71 | ) |
| 71 | 72 | ||