]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect-image: remove unused variable when built without libcryptsetup (#7538)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Dec 2017 09:34:46 +0000 (18:34 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Dec 2017 09:34:46 +0000 (10:34 +0100)
src/shared/dissect-image.c

index 7835d99020b6d71768408fc64019630b2b17f090..5c69b87c00f46f70fb67c63bd96d1396ce3750af 100644 (file)
@@ -976,8 +976,8 @@ int dissected_image_decrypt(
                 DissectImageFlags flags,
                 DecryptedImage **ret) {
 
-        _cleanup_(decrypted_image_unrefp) DecryptedImage *d = NULL;
 #if HAVE_LIBCRYPTSETUP
+        _cleanup_(decrypted_image_unrefp) DecryptedImage *d = NULL;
         unsigned i;
         int r;
 #endif