mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
couple of warning build fixes
This commit is contained in:
parent
52930a7597
commit
b09970f159
2 changed files with 4 additions and 3 deletions
|
@ -2230,7 +2230,7 @@ thread_state thread_ctrl::state()
|
||||||
return static_cast<thread_state>(_this->m_sync & 3);
|
return static_cast<thread_state>(_this->m_sync & 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
void thread_ctrl::_wait_for(u64 usec, bool alert /* true */)
|
void thread_ctrl::_wait_for(u64 usec, [[maybe_unused]] bool alert /* true */)
|
||||||
{
|
{
|
||||||
auto _this = g_tls_this_thread;
|
auto _this = g_tls_this_thread;
|
||||||
|
|
||||||
|
@ -2983,14 +2983,15 @@ std::pair<void*, usz> thread_ctrl::get_thread_stack()
|
||||||
#else
|
#else
|
||||||
void* saddr = 0;
|
void* saddr = 0;
|
||||||
usz ssize = 0;
|
usz ssize = 0;
|
||||||
pthread_attr_t attr;
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
|
pthread_attr_t attr;
|
||||||
pthread_getattr_np(pthread_self(), &attr);
|
pthread_getattr_np(pthread_self(), &attr);
|
||||||
pthread_attr_getstack(&attr, &saddr, &ssize);
|
pthread_attr_getstack(&attr, &saddr, &ssize);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
saddr = pthread_get_stackaddr_np(pthread_self());
|
saddr = pthread_get_stackaddr_np(pthread_self());
|
||||||
ssize = pthread_get_stacksize_np(pthread_self());
|
ssize = pthread_get_stacksize_np(pthread_self());
|
||||||
#else
|
#else
|
||||||
|
pthread_attr_t attr;
|
||||||
pthread_attr_get_np(pthread_self(), &attr);
|
pthread_attr_get_np(pthread_self(), &attr);
|
||||||
pthread_attr_getstackaddr(&attr, &saddr);
|
pthread_attr_getstackaddr(&attr, &saddr);
|
||||||
pthread_attr_getstacksize(&attr, &ssize);
|
pthread_attr_getstacksize(&attr, &ssize);
|
||||||
|
|
|
@ -280,7 +280,7 @@ namespace vk
|
||||||
dev.destroy();
|
dev.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
VkResult present(VkSemaphore /*semaphore*/, u32 index) override
|
VkResult present(VkSemaphore /*semaphore*/, u32 /*index*/) override
|
||||||
{
|
{
|
||||||
fmt::throw_exception("Native macOS swapchain is not implemented yet!");
|
fmt::throw_exception("Native macOS swapchain is not implemented yet!");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue