1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-09-08 13:44:50 +03:00

cryptsetup: fix unused variable (#6833)

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.
This commit is contained in:
Martin Pitt
2017-09-15 07:32:50 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent bce67bbee3
commit 2e914ef433

View File

@@ -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;