Module: Mesa Branch: main Commit: fa1cf83217e6f1529dd0fbda55d5557b806f5d87 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa1cf83217e6f1529dd0fbda55d5557b806f5d87
Author: Eric Engestrom <[email protected]> Date: Fri Feb 24 11:23:02 2023 +0000 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 <[email protected]> Reviewed-by: Yonggang Luo <[email protected]> Acked-by: David Heidelberg <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21558> --- 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',
