From 1d877271c49f51c3d98e6644dd3f13ad3e0329af Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 2 Jun 2024 19:57:39 +0200 Subject: [PATCH] repart: Fix unused variable warning --- src/partition/repart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/partition/repart.c b/src/partition/repart.c index b6c055f36f..6f67d46025 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; -- 2.25.1