diff options
author | Lioncash <[email protected]> | 2019-04-04 12:56:04 -0400 |
---|---|---|
committer | Lioncash <[email protected]> | 2019-04-04 13:18:09 -0400 |
commit | 7f506be2ee7cd0b432cc00d085406c01c7df4b0e (patch) | |
tree | f81df4016ee6777add5fd30292b5851ae3e4d628 /src/core/hle/service/spl | |
parent | 7c31661869156d00241e8aebddc9718b918f57d7 (diff) | |
download | yuzu-android-7f506be2ee7cd0b432cc00d085406c01c7df4b0e.tar.gz yuzu-android-7f506be2ee7cd0b432cc00d085406c01c7df4b0e.zip |
hle/service: Resolve unused variable warnings
In several places, we have request parsers where there's nothing to
really parse, simply because the HLE function in question operates on
buffers. In these cases we can just remove these instances altogether.
In the other cases, we can retrieve the relevant members from the parser
and at least log them out, giving them some use.
Diffstat (limited to 'src/core/hle/service/spl')
-rw-r--r-- | src/core/hle/service/spl/module.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/spl/module.cpp b/src/core/hle/service/spl/module.cpp index 8db0c2f13..e724d4ab8 100644 --- a/src/core/hle/service/spl/module.cpp +++ b/src/core/hle/service/spl/module.cpp @@ -26,9 +26,7 @@ Module::Interface::~Interface() = default; void Module::Interface::GetRandomBytes(Kernel::HLERequestContext& ctx) { LOG_DEBUG(Service_SPL, "called"); - IPC::RequestParser rp{ctx}; - - std::size_t size = ctx.GetWriteBufferSize(); + const std::size_t size = ctx.GetWriteBufferSize(); std::uniform_int_distribution<u16> distribution(0, std::numeric_limits<u8>::max()); std::vector<u8> data(size); |