diff options
| author | Lioncash <mathew1800@gmail.com> | 2021-05-16 01:46:30 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2021-05-16 03:43:16 -0400 |
| commit | eeae5217ba6572e8dfb91550ea9f30413c6786b8 (patch) | |
| tree | 54d6c5a6b319a10522b068caf2b0600c8f27876a /src/core/hle/kernel/svc.cpp | |
| parent | 37e988258ad9b313144386edf3c5d91c2fed05a3 (diff) | |
core: Make variable shadowing a compile-time error
Now that we have most of core free of shadowing, we can enable the
warning as an error to catch anything that may be remaining and also
eliminate this class of logic bug entirely.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 6b445677ec..81e23f7004 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -819,10 +819,10 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle return RESULT_SUCCESS; } - Handle handle{}; - R_TRY(handle_table.Add(&handle, resource_limit)); + Handle resource_handle{}; + R_TRY(handle_table.Add(&resource_handle, resource_limit)); - *result = handle; + *result = resource_handle; return RESULT_SUCCESS; } |
