From 907adc817ef0cad3f0a4a5d33737301712927c06 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 5 May 2020 21:55:22 +0300 Subject: [PATCH] Fix some warnings (GCC) --- rpcs3/Emu/Cell/Modules/cellCamera.cpp | 4 ++-- rpcs3/Emu/Cell/lv2/sys_config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellCamera.cpp b/rpcs3/Emu/Cell/Modules/cellCamera.cpp index b833a1d790..44c41412b3 100644 --- a/rpcs3/Emu/Cell/Modules/cellCamera.cpp +++ b/rpcs3/Emu/Cell/Modules/cellCamera.cpp @@ -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; } diff --git a/rpcs3/Emu/Cell/lv2/sys_config.h b/rpcs3/Emu/Cell/lv2/sys_config.h index 97bc9cb5ba..bcfcbd2781 100644 --- a/rpcs3/Emu/Cell/lv2/sys_config.h +++ b/rpcs3/Emu/Cell/lv2/sys_config.h @@ -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; }