diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-21 15:21:13 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-07-22 00:30:19 +0200 |
commit | ff871511af79fd8fb7a09d3ed42220830e6ddcd6 (patch) | |
tree | 100728bb821d4fe1b7622eedd1174920302459e8 /src/Common/Crc.c | |
parent | 0fb2befe3ab57696d5b4c9de6fee344bfd520bf6 (diff) | |
download | VeraCrypt-ff871511af79fd8fb7a09d3ed42220830e6ddcd6.tar.gz VeraCrypt-ff871511af79fd8fb7a09d3ed42220830e6ddcd6.zip |
Windows: reduce size of MBR bootloader by removing unused functions in each build type.
Diffstat (limited to 'src/Common/Crc.c')
-rw-r--r-- | src/Common/Crc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Common/Crc.c b/src/Common/Crc.c index 295bf8da..7e18cb4f 100644 --- a/src/Common/Crc.c +++ b/src/Common/Crc.c @@ -120,8 +120,9 @@ unsigned __int32 GetCrc32 (unsigned char *data, int length) return r ^ 0xFFFFFFFFUL; } +#if 0 BOOL crc32_selftests () { unsigned __int8 testData[32]; unsigned __int8 i; @@ -130,6 +131,7 @@ BOOL crc32_selftests () testData[i] = i; return GetCrc32 (testData, sizeof (testData)) == 0x91267E8AUL; } +#endif #endif // TC_MINIMIZE_CODE_SIZE |