From 3d400363b6589980de500e69243944ee683c0c96 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 16 Jul 2017 01:05:47 +0200 Subject: [PATCH] sodium_compare: x1, x2 don't have to be volatile --- src/libsodium/sodium/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index 6499c41c..3fbcb1a2 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -165,7 +165,7 @@ sodium_compare(const unsigned char *b1_, const unsigned char *b2_, size_t len) size_t i; volatile unsigned char gt = 0U; volatile unsigned char eq = 1U; - volatile uint16_t x1, x2; + uint16_t x1, x2; #if HAVE_WEAK_SYMBOLS _sodium_dummy_symbol_to_prevent_compare_lto(b1, b2, len);