diff --git a/DataFormats/Math/test/FastMath_t.cpp b/DataFormats/Math/test/FastMath_t.cpp index 18fe286fadc09..79bbb217e6c14 100644 --- a/DataFormats/Math/test/FastMath_t.cpp +++ b/DataFormats/Math/test/FastMath_t.cpp @@ -43,7 +43,7 @@ namespace { amax = std::max(amax, std::abs(d)); } - volatile double dummy; + double dummy; template inline T eta(T x, T y, T z) { x = z / std::sqrt(x * x + y * y); diff --git a/DataFormats/Math/test/rdtscp.h b/DataFormats/Math/test/rdtscp.h index d7b07468ebe7f..1191351bc7903 100644 --- a/DataFormats/Math/test/rdtscp.h +++ b/DataFormats/Math/test/rdtscp.h @@ -28,13 +28,13 @@ namespace { return false; } unsigned int rdtscp_val = 0; - inline volatile unsigned long long rdtsc() { return __rdtscp(&rdtscp_val); } + inline unsigned long long rdtsc() { return __rdtscp(&rdtscp_val); } } // namespace #endif #else // !defined(__arm__) && !defined(__aarch64__) namespace { inline bool has_rdtscp() { return false; } - inline volatile unsigned long long rdtsc() { return 0; } + inline unsigned long long rdtsc() { return 0; } } // namespace #endif // !defined(__arm__) && !defined(__aarch64__)