Skip to content
Permalink
Browse files

Fix a compiler warning

  • Loading branch information...
ccurtsinger committed Oct 8, 2019
1 parent 52505ca commit 9cbccbc9113b3856f7b8f36c7519d0d204b6bc53
Showing with 2 additions and 0 deletions.
  1. +2 −0 libcoz/profiler.cpp
@@ -466,6 +466,8 @@ void* profiler::start_profiler_thread(void* arg) {
spinlock* l = (spinlock*)arg;
profiler::get_instance().profiler_thread(*l);
real::pthread_exit(nullptr);
// Unreachable return silences compiler warning
return nullptr;
}

void profiler::samples_ready(int signum, siginfo_t* info, void* p) {

0 comments on commit 9cbccbc

Please sign in to comment.
You can’t perform that action at this time.