From 117ae267046ed564684793270b82767c585c724b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 9 Jan 2024 21:09:56 -0500 Subject: Avoid regressions in clang nullability checks Clang 15 (and still as of 16) lost the ability to understand null checks in conditionals, which is supposed to suppress these warnings. For now, work around some, and suppress others. The suppression boilerplate here is noisy and ugly, and hopefully temporary. It should be removed once the issue is fixed in clang. See https://github.com/llvm/llvm-project/issues/63018 --- .clang-format | 2 ++ 1 file changed, 2 insertions(+) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index caf02057..26b10123 100644 --- a/.clang-format +++ b/.clang-format @@ -34,5 +34,7 @@ AttributeMacros: StatementMacros: - SERD_DEPRECATED_BY - SERD_LOG_FUNC + - SERD_DISABLE_NULL_WARNINGS + - SERD_RESTORE_WARNINGS - _Pragma ... -- cgit v1.2.1