From fa1cf83217e6f1529dd0fbda55d5557b806f5d87 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 24 Feb 2023 11:23:02 +0000 Subject: [PATCH] meson: allow checking for null pointers even if they're supposed to be non-null ../src/c11/impl/time.c: In function 'timespec_get': ../src/c11/impl/time.c:71:8: error: 'nonnull' argument 'ts' compared to NULL [-Werror=nonnull-compare] 71 | if (!ts) | ^ cc1: all warnings being treated as errors Signed-off-by: Eric Engestrom Reviewed-by: Yonggang Luo Acked-by: David Heidelberg Part-of: --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index de030fbd04d..2c7c4aaa59e 100644 --- a/meson.build +++ b/meson.build @@ -995,6 +995,7 @@ else '-Wmisleading-indentation', '-Wno-missing-field-initializers', '-Wno-format-truncation', + '-Wno-nonnull-compare', '-fno-math-errno', '-fno-trapping-math', '-Qunused-arguments',