1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2026-01-03 12:18:11 -06:00

Linux/MacOSX: Better approach to avoid that jitterentropy code is optimized by the compiler

This commit is contained in:
Mounir IDRASSI
2019-10-24 19:20:05 +02:00
parent 6b90e02624
commit 96c90d18c2
3 changed files with 16 additions and 6 deletions

View File

@@ -57,7 +57,11 @@
#pragma optimize( "", off )
#pragma warning(disable:4242 4244 4334) /* disable warnings on the original code */
#else
#pragma GCC optimize ("O0")
#if defined(__clang__)
#pragma clang optimize off
#elif defined (__GNUC__)
#pragma GCC optimize ("O0")
#endif
#endif
#include "jitterentropy.h"