diff options
| author | 2021-05-02 22:14:15 -0400 | |
|---|---|---|
| committer | 2021-05-03 01:19:13 -0400 | |
| commit | ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b (patch) | |
| tree | 024cebd87e461cc8212810576b0e759321911f1f /src/core/arm | |
| parent | Merge pull request #6269 from lioncash/file-shadow (diff) | |
| download | yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.gz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.tar.xz yuzu-ebb64d5bf4c6a1b3e89e7addbd72ca310be7807b.zip | |
core: Resolve misc cases of variable shadowing
Resolves shadowing warnings that aren't in a particularly large
subsection of core. Brings us closer to turning -Wshadow into an error.
All that remains now is for cases in the kernel (left untouched for now
since a big change by bunnei is pending), and a few left over in the
service code (will be tackled next).
Diffstat (limited to 'src/core/arm')
| -rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_cp15.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp b/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp index caefc09f4..ebd506121 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_cp15.cpp | |||
| @@ -94,12 +94,11 @@ CallbackOrAccessOneWord DynarmicCP15::CompileGetOneWord(bool two, unsigned opc1, | |||
| 94 | CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) { | 94 | CallbackOrAccessTwoWords DynarmicCP15::CompileGetTwoWords(bool two, unsigned opc, CoprocReg CRm) { |
| 95 | if (!two && opc == 0 && CRm == CoprocReg::C14) { | 95 | if (!two && opc == 0 && CRm == CoprocReg::C14) { |
| 96 | // CNTPCT | 96 | // CNTPCT |
| 97 | const auto callback = static_cast<u64 (*)(Dynarmic::A32::Jit*, void*, u32, u32)>( | 97 | const auto callback = [](Dynarmic::A32::Jit*, void* arg, u32, u32) -> u64 { |
| 98 | [](Dynarmic::A32::Jit*, void* arg, u32, u32) -> u64 { | 98 | const auto& parent_arg = *static_cast<ARM_Dynarmic_32*>(arg); |
| 99 | ARM_Dynarmic_32& parent = *(ARM_Dynarmic_32*)arg; | 99 | return parent_arg.system.CoreTiming().GetClockTicks(); |
| 100 | return parent.system.CoreTiming().GetClockTicks(); | 100 | }; |
| 101 | }); | 101 | return Callback{callback, &parent}; |
| 102 | return Dynarmic::A32::Coprocessor::Callback{callback, (void*)&parent}; | ||
| 103 | } | 102 | } |
| 104 | 103 | ||
| 105 | LOG_CRITICAL(Core_ARM, "CP15: mrrc{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm); | 104 | LOG_CRITICAL(Core_ARM, "CP15: mrrc{} p15, {}, <Rt>, <Rt2>, {}", two ? "2" : "", opc, CRm); |