Fix some warnings (GCC)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user