From: Vladimír Čunát Date: Wed, 5 Jun 2024 07:58:18 +0000 (+0200) Subject: meson.build: avoid a gcc 14 warning X-Git-Tag: v5.7.4~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70a6fd87c54bd60e27f86c13de539cfb399ce36b;p=thirdparty%2Fknot-resolver.git meson.build: avoid a gcc 14 warning Picked from master commit 68688fac013a4c16a476acc15c366a8ce07ed46e --- diff --git a/meson.build b/meson.build index 47c234c06..4a97edd55 100644 --- a/meson.build +++ b/meson.build @@ -172,6 +172,13 @@ add_project_arguments( language: 'c', ) +if meson.get_compiler('c').get_id() == 'gcc' + add_project_arguments( + '-Wno-nonnull-compare', # reasonable to do in assertions + language: 'c', + ) +endif + # Files for clang-tidy lint c_src_lint = files()