From 47faaa87fcc7a497cd138041ed6c13a742dd671c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 31 Jan 2017 17:41:44 +0200 Subject: [PATCH] Fixed deprecation warning reported by Clang warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register] --- src/stats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats.h b/src/stats.h index 316633983..8ac1e978a 100644 --- a/src/stats.h +++ b/src/stats.h @@ -130,7 +130,7 @@ inline unsigned long long rdtsc() if (CPU.bRDTSC) #endif { - register unsigned long long tsc; + unsigned long long tsc; asm volatile ("\trdtsc\n" : "=A" (tsc)); return tsc; }