From: Daan De Meyer Date: Sun, 2 Jun 2024 17:57:39 +0000 (+0200) Subject: repart: Fix unused variable warning X-Git-Tag: v256-rc4~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d877271c49f51c3d98e6644dd3f13ad3e0329af;p=thirdparty%2Fsystemd.git repart: Fix unused variable warning --- diff --git a/src/partition/repart.c b/src/partition/repart.c index b6c055f36f4..6f67d460259 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -3929,7 +3929,9 @@ static int partition_encrypt(Context *context, Partition *p, PartitionTarget *ta .flags = CRYPT_REENCRYPT_INITIALIZE_ONLY|CRYPT_REENCRYPT_MOVE_FIRST_SEGMENT, }; _cleanup_(sym_crypt_freep) struct crypt_device *cd = NULL; +#if HAVE_TPM2 _cleanup_(erase_and_freep) char *base64_encoded = NULL; +#endif _cleanup_fclose_ FILE *h = NULL; _cleanup_free_ char *hp = NULL, *vol = NULL, *dm_name = NULL; const char *passphrase = NULL;