mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Linux: Solve compilation warning (unused variables, pointer cast)
This commit is contained in:
@@ -1392,19 +1392,16 @@ namespace VeraCrypt
|
||||
File backupFile;
|
||||
backupFile.Open (*files.front(), File::OpenRead);
|
||||
|
||||
uint64 headerSize;
|
||||
bool legacyBackup;
|
||||
|
||||
// Determine the format of the backup file
|
||||
switch (backupFile.Length())
|
||||
{
|
||||
case TC_VOLUME_HEADER_GROUP_SIZE:
|
||||
headerSize = TC_VOLUME_HEADER_SIZE;
|
||||
legacyBackup = false;
|
||||
break;
|
||||
|
||||
case TC_VOLUME_HEADER_SIZE_LEGACY * 2:
|
||||
headerSize = TC_VOLUME_HEADER_SIZE_LEGACY;
|
||||
legacyBackup = true;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user