Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-06-10 18:04:05 +0300
committerGitHub <noreply@github.com>2022-06-10 18:04:05 +0300
commite084f7c9e3bceb583bed0ea2f38be3dc0c3db1b4 (patch)
treecd717101b77d66732298095384a7a1dfef8c4271
parent0b2e276dd2d96b475b38c737a7fc29bc74eaad67 (diff)
parent66ba9621bd66fc3feb4e8937a58563f283ed2abe (diff)
Merge pull request #408 from beqjanus/issue-407
Avoid "Code is unreachable warning"
-rw-r--r--client/TracyProfiler.cpp3
1 files changed, 2 insertions, 1 deletions
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;