From e0de4dd5a2b0c0dc27e6a6ab01fabe374d657d23 Mon Sep 17 00:00:00 2001 From: Xiaoyin Liu Date: Mon, 24 Jul 2017 11:28:50 -0400 Subject: [PATCH] schlock global variable needs to be volatile Reviewed-by: Andy Polyakov Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4000) --- apps/speed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/speed.c b/apps/speed.c index becdf6efcd..2d943b12e2 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -275,7 +275,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; -- 2.34.1