]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: Pass -Wno-deprecated-declarations when detecting libcryptsetup functions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 3 Jun 2024 07:31:26 +0000 (09:31 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 3 Jun 2024 10:52:48 +0000 (12:52 +0200)
Otherwise we fail to detect crypt_reencrypt() if -Werror is used.

meson.build

index b0b8697d5029a81ad550c6bda25dd3f2fb1a987d..ea4e12aa1c6db4fcda0e690f555699a74a4b73fc 100644 (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