mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Fix some warnings
This commit is contained in:
parent
73236efe58
commit
69e81da57b
@ -1807,7 +1807,8 @@ void thread_ctrl::_wait_for(u64 usec, bool alert /* true */)
|
||||
timeout.it_interval.tv_sec = 0;
|
||||
timeout.it_interval.tv_nsec = 0;
|
||||
timerfd_settime(_this->m_timer, 0, &timeout, NULL);
|
||||
read(_this->m_timer, &missed, sizeof(missed));
|
||||
if (read(_this->m_timer, &missed, sizeof(missed)) != sizeof(missed))
|
||||
LOG_ERROR(GENERAL, "timerfd: read() failed");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -129,6 +129,10 @@ void fmt_class_string<CellSysutilParamId>::format(std::string& out, u64 arg)
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_MAGNETOMETER: return "ID_MAGNETOMETER";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_NICKNAME: return "ID_NICKNAME";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_CURRENT_USERNAME: return "ID_CURRENT_USERNAME";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_x1008: return "ID_x1008";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_x1011: return "ID_x1011";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_x1012: return "ID_x1012";
|
||||
case CELL_SYSUTIL_SYSTEMPARAM_ID_x1024: return "ID_x1024";
|
||||
}
|
||||
|
||||
return unknown;
|
||||
|
@ -39,8 +39,6 @@ else()
|
||||
add_compile_options(-Wno-attributes)
|
||||
add_compile_options(-Wno-enum-compare)
|
||||
add_compile_options(-Wno-comment)
|
||||
add_compile_options(-Wno-overloaded-virtual)
|
||||
add_compile_options(-Wno-missing-braces)
|
||||
add_compile_options(-Wno-sign-compare)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
|
Loading…
Reference in New Issue
Block a user