VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-18 08:38:02 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-07-18 08:38:02 +0200
commit34b00fa82511d4749bd49f41b3edd72f5f586b8a (patch)
treef08ebb47ccb4dc7d2b2a63f67bc241cbfa34529b
parentc0785aa1d4b6d988f175ca5732641e6ae2b10cc7 (diff)
downloadVeraCrypt-34b00fa82511d4749bd49f41b3edd72f5f586b8a.tar.gz
VeraCrypt-34b00fa82511d4749bd49f41b3edd72f5f586b8a.zip
Windows: Fix compiler warnings
-rw-r--r--src/Common/Dlgcode.c3
-rw-r--r--src/Crypto/cpu.c1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 2cf61415..32e1617d 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -9088,8 +9088,7 @@ retry:
{
if (mount.wszVolume == NULL || swscanf_s ((const wchar_t *) mount.wszVolume,
WIDE("\\Device\\Harddisk%d\\Partition"),
- &mount.nPartitionInInactiveSysEncScopeDriveNo,
- sizeof(mount.nPartitionInInactiveSysEncScopeDriveNo)) != 1)
+ &mount.nPartitionInInactiveSysEncScopeDriveNo) != 1)
{
if (!quiet)
Warning ("NO_SYSENC_PARTITION_SELECTED", hwndDlg);
diff --git a/src/Crypto/cpu.c b/src/Crypto/cpu.c
index c3a769c8..effde6ba 100644
--- a/src/Crypto/cpu.c
+++ b/src/Crypto/cpu.c
@@ -348,7 +348,6 @@ void DetectX86Features()
g_hasISSE = 1;
else
{
- uint32 cpuid2[4] = {0};
CpuId(0x080000000, cpuid2);
if (cpuid2[0] >= 0x080000001)
{