mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
Fix some warnings (GCC)
This commit is contained in:
parent
a6f0b1b532
commit
907adc817e
@ -1300,7 +1300,7 @@ void camera_context::operator()()
|
||||
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;
|
||||
}
|
||||
@ -1347,7 +1347,7 @@ void camera_context::send_attach_state(bool attached)
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ private:
|
||||
{
|
||||
if (auto sptr = queue.lock())
|
||||
{
|
||||
return sptr->send(source, d1, d2, d3) == CELL_OK;
|
||||
return sptr->send(source, d1, d2, d3) == 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user