From: Xiaoyin Liu Date: Mon, 24 Jul 2017 15:28:50 +0000 (-0400) Subject: schlock global variable needs to be volatile X-Git-Tag: OpenSSL_1_1_0g~129 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a701db76e27ffce4c88c2f621269ca5589c984ea;p=oweals%2Fopenssl.git schlock global variable needs to be volatile Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4000) (cherry picked from commit e0de4dd5a2b0c0dc27e6a6ab01fabe374d657d23) --- diff --git a/apps/speed.c b/apps/speed.c index e98fea3b2a..5ee58d912b 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -293,7 +293,8 @@ static SIGRETTYPE sig_done(int sig) # if !defined(SIGALRM) # define SIGALRM # endif -static unsigned int lapse, schlock; +static unsigned int lapse; +static volatile unsigned int schlock; static void alarm_win32(unsigned int secs) { lapse = secs * 1000;