diff --git a/libs/pbd/pthread_utils.cc b/libs/pbd/pthread_utils.cc index 1d0d95dff4..c3d54afc80 100644 --- a/libs/pbd/pthread_utils.cc +++ b/libs/pbd/pthread_utils.cc @@ -574,7 +574,8 @@ PBD::Thread::Thread (std::function const& slot, std::string const& name } void* -PBD::Thread::_run (void* arg) { +PBD::Thread::_run (void* arg) +{ PBD::Thread* self = static_cast(arg); if (!self->_name.empty ()) { pthread_set_name (self->_name.c_str ());