================
@@ -47,7 +47,13 @@ struct __libcpp_datasizeof {
};
#endif
+ // Disable warnings related to the use of `offsetof` on non-standard layout
or non-POD types
+ // TODO : Find a way to replace `offsetof` ?
+ _LIBCPP_DIAGNOSTIC_PUSH
+ _LIBCPP_CLANG_DIAGNOSTIC_IGNORED("-Winvalid-offsetof")
+ _LIBCPP_GCC_DIAGNOSTIC_IGNORED("-Winvalid-offsetof")
----------------
philnik777 wrote:
GCC doesn't warn on this, so we shouldn't suppress anything here.
https://github.com/llvm/llvm-project/pull/65246
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits