mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Fix some warnings (GCC)
This commit is contained in:
parent
a6f0b1b532
commit
907adc817e
2 changed files with 3 additions and 3 deletions
|
@ -1300,7 +1300,7 @@ void camera_context::operator()()
|
||||||
data3 = 0; // unused
|
data3 = 0; // unused
|
||||||
}
|
}
|
||||||
|
|
||||||
if (queue->send(evt_data.source, CELL_CAMERA_FRAME_UPDATE, data2, data3) == CELL_OK) [[likely]]
|
if (queue->send(evt_data.source, CELL_CAMERA_FRAME_UPDATE, data2, data3) == 0) [[likely]]
|
||||||
{
|
{
|
||||||
++frame_num;
|
++frame_num;
|
||||||
}
|
}
|
||||||
|
@ -1347,7 +1347,7 @@ void camera_context::send_attach_state(bool attached)
|
||||||
|
|
||||||
if (auto queue = lv2_event_queue::find(key))
|
if (auto queue = lv2_event_queue::find(key))
|
||||||
{
|
{
|
||||||
if (queue->send(evt_data.source, attached ? CELL_CAMERA_ATTACH : CELL_CAMERA_DETACH, 0, 0) == CELL_OK) [[likely]]
|
if (queue->send(evt_data.source, attached ? CELL_CAMERA_ATTACH : CELL_CAMERA_DETACH, 0, 0) == 0) [[likely]]
|
||||||
{
|
{
|
||||||
is_attached = attached;
|
is_attached = attached;
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@ private:
|
||||||
{
|
{
|
||||||
if (auto sptr = queue.lock())
|
if (auto sptr = queue.lock())
|
||||||
{
|
{
|
||||||
return sptr->send(source, d1, d2, d3) == CELL_OK;
|
return sptr->send(source, d1, d2, d3) == 0;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue