mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
fix some random warnings
This commit is contained in:
parent
485b22d664
commit
4dbad6cce6
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue