1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-21 18:22:33 +01:00

couple of warning build fixes

This commit is contained in:
David Carlier 2021-05-09 08:05:48 +01:00 committed by Megamouse
parent 52930a7597
commit b09970f159
2 changed files with 4 additions and 3 deletions

View File

@ -2230,7 +2230,7 @@ thread_state thread_ctrl::state()
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;
@ -2983,14 +2983,15 @@ std::pair<void*, usz> thread_ctrl::get_thread_stack()
#else
void* saddr = 0;
usz ssize = 0;
pthread_attr_t attr;
#if defined(__linux__)
pthread_attr_t attr;
pthread_getattr_np(pthread_self(), &attr);
pthread_attr_getstack(&attr, &saddr, &ssize);
#elif defined(__APPLE__)
saddr = pthread_get_stackaddr_np(pthread_self());
ssize = pthread_get_stacksize_np(pthread_self());
#else
pthread_attr_t attr;
pthread_attr_get_np(pthread_self(), &attr);
pthread_attr_getstackaddr(&attr, &saddr);
pthread_attr_getstacksize(&attr, &ssize);

View File

@ -280,7 +280,7 @@ namespace vk
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!");
}