From 2e914ef4333ef3278a1dd5556c8c2f30aab81b6c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 15 Sep 2017 07:32:50 +0200 Subject: [PATCH] cryptsetup: fix unused variable (#6833) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When building without veracrypt, gcc warns ../src/cryptsetup/cryptsetup.c:55:13: warning: ‘arg_tcrypt_veracrypt’ defined but not used [-Wunused-variable] static bool arg_tcrypt_veracrypt = false; Fix this by conditionalizing the declaration. --- src/cryptsetup/cryptsetup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c index 08ed7e5..e1e1a96 100644 --- a/src/cryptsetup/cryptsetup.c +++ b/src/cryptsetup/cryptsetup.c @@ -52,7 +52,9 @@ static bool arg_verify = false; static bool arg_discards = false; static bool arg_tcrypt_hidden = false; static bool arg_tcrypt_system = false; +#ifdef CRYPT_TCRYPT_VERA_MODES static bool arg_tcrypt_veracrypt = false; +#endif static char **arg_tcrypt_keyfiles = NULL; static uint64_t arg_offset = 0; static uint64_t arg_skip = 0; -- 2.7.4