From: Daan De Meyer Date: Mon, 3 Jun 2024 07:31:26 +0000 (+0200) Subject: meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions X-Git-Tag: v256-rc4~31^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7865c2408fa1960f416213ab22783a0bcf3171a;p=thirdparty%2Fsystemd.git meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions Otherwise we fail to detect crypt_reencrypt() if -Werror is used. --- diff --git a/meson.build b/meson.build index b0b8697d502..ea4e12aa1c6 100644 --- a/meson.build +++ b/meson.build @@ -1268,6 +1268,9 @@ foreach ident : ['crypt_set_metadata_size', have_ident = have and cc.has_function( ident, prefix : '#include ', + # crypt_reencrypt() raises a deprecation warning so make sure -Wno-deprecated-declarations is + # specified otherwise we fail to detect crypt_reencrypt() if -Werror is used. + args : '-Wno-deprecated-declarations', dependencies : libcryptsetup) conf.set10('HAVE_' + ident.to_upper(), have_ident) endforeach