Merge pull request #408 from beqjanus/issue-407

Avoid "Code is unreachable warning"
This commit is contained in:
Bartosz Taudul 2022-06-10 17:04:05 +02:00 committed by GitHub
commit e084f7c9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -335,8 +335,9 @@ static bool CheckHardwareSupportsInvariantTSC()
{ {
#if !defined TRACY_TIMER_QPC && !defined TRACY_TIMER_FALLBACK #if !defined TRACY_TIMER_QPC && !defined TRACY_TIMER_FALLBACK
InitFailure( "CPU doesn't support RDTSC instruction." ); InitFailure( "CPU doesn't support RDTSC instruction." );
#endif #else
return false; return false;
#endif
} }
CpuId( regs, 0x80000007 ); CpuId( regs, 0x80000007 );
if( regs[3] & ( 1 << 8 ) ) return true; if( regs[3] & ( 1 << 8 ) ) return true;