fix some random warnings

This commit is contained in:
Megamouse 2020-01-19 14:46:28 +01:00
parent 485b22d664
commit 4dbad6cce6
2 changed files with 7 additions and 3 deletions

View file

@ -71,7 +71,9 @@ error_code cellVideoOutGetState(u32 videoOut, u32 deviceIndex, vm::ptr<CellVideo
return CELL_VIDEO_OUT_ERROR_ILLEGAL_PARAMETER;
}
if (deviceIndex >= cellVideoOutGetNumberOfDevice(videoOut))
const auto device_count = cellVideoOutGetNumberOfDevice(videoOut);
if (device_count < 0 || deviceIndex >= static_cast<u32>(device_count))
{
return CELL_VIDEO_OUT_ERROR_DEVICE_NOT_FOUND;
}
@ -227,7 +229,9 @@ error_code cellVideoOutGetDeviceInfo(u32 videoOut, u32 deviceIndex, vm::ptr<Cell
return CELL_VIDEO_OUT_ERROR_ILLEGAL_PARAMETER;
}
if (deviceIndex >= cellVideoOutGetNumberOfDevice(videoOut))
const auto device_count = cellVideoOutGetNumberOfDevice(videoOut);
if (device_count < 0 || deviceIndex >= static_cast<u32>(device_count))
{
return CELL_VIDEO_OUT_ERROR_DEVICE_NOT_FOUND;
}

View file

@ -760,7 +760,7 @@ namespace rsx
virtual void notify_tile_unbound(u32 /*tile*/) {}
// control
virtual void renderctl(u32 request_code, void* args) {}
virtual void renderctl(u32 /*request_code*/, void* /*args*/) {}
// zcull
void notify_zcull_info_changed();