From 66ba9621bd66fc3feb4e8937a58563f283ed2abe Mon Sep 17 00:00:00 2001 From: Beq Date: Wed, 8 Jun 2022 23:37:39 +0100 Subject: [PATCH] Avoid "Code is unreachable warning" --- client/TracyProfiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 65e7b4c9..2f898aba 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -335,8 +335,9 @@ static bool CheckHardwareSupportsInvariantTSC() { #if !defined TRACY_TIMER_QPC && !defined TRACY_TIMER_FALLBACK InitFailure( "CPU doesn't support RDTSC instruction." ); -#endif +#else return false; +#endif } CpuId( regs, 0x80000007 ); if( regs[3] & ( 1 << 8 ) ) return true;