1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-09 01:18:19 +03:00

meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions

Otherwise we fail to detect crypt_reencrypt() if -Werror is used.
This commit is contained in:
Daan De Meyer 2024-06-03 09:31:26 +02:00
parent c397b5c701
commit b7865c2408

View File

@ -1268,6 +1268,9 @@ foreach ident : ['crypt_set_metadata_size',
have_ident = have and cc.has_function(
ident,
prefix : '#include <libcryptsetup.h>',
# 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