GH102: Extra volatile avoids GCC bug

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
This commit is contained in:
Rich Salz
2016-01-30 19:48:09 -05:00
committed by Rich Salz
parent 9716b0b9de
commit 769adcfe8b
2 changed files with 6 additions and 2 deletions

View File

@@ -542,7 +542,9 @@ int OPENSSL_gmtime_diff(int *pday, int *psec,
* into a defined order as the return value when a != b is undefined, other
* than to be non-zero.
*/
int CRYPTO_memcmp(const volatile void *a, const volatile void *b, size_t len);
int CRYPTO_memcmp(const volatile void * volatile in_a,
const volatile void * volatile in_b,
size_t len);
/* BEGIN ERROR CODES */
/*