Procházet zdrojové kódy

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).
comex před 5 roky
rodič
revize
32f3b6b865
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/CMakeLists.txt

+ 1 - 0
src/CMakeLists.txt

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