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:
authorBeq <BeqJanus@vcs.firestormviewer.org>2022-06-09 01:37:39 +0300
committerBeq <BeqJanus@vcs.firestormviewer.org>2022-06-09 01:37:39 +0300
commit66ba9621bd66fc3feb4e8937a58563f283ed2abe (patch)
treecd717101b77d66732298095384a7a1dfef8c4271
parent0b2e276dd2d96b475b38c737a7fc29bc74eaad67 (diff)
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;