diff options
author | Lioncash <[email protected]> | 2021-05-16 01:46:30 -0400 |
---|---|---|
committer | Lioncash <[email protected]> | 2021-05-16 03:43:16 -0400 |
commit | 9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7 (patch) | |
tree | 54d6c5a6b319a10522b068caf2b0600c8f27876a /src/core/hle/service/pctl | |
parent | 06c410ee882885e67260b963c3b86f4cf3c7de98 (diff) | |
download | yuzu-android-9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7.tar.gz yuzu-android-9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7.zip |
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/service/pctl')
-rw-r--r-- | src/core/hle/service/pctl/pctl.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/service/pctl/pctl.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp index e4d155c86..908e0a1e3 100644 --- a/src/core/hle/service/pctl/pctl.cpp +++ b/src/core/hle/service/pctl/pctl.cpp @@ -7,8 +7,8 @@ namespace Service::PCTL { PCTL::PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, - Capability capability) - : Interface{system_, std::move(module_), name, capability} { + Capability capability_) + : Interface{system_, std::move(module_), name, capability_} { static const FunctionInfo functions[] = { {0, &PCTL::CreateService, "CreateService"}, {1, &PCTL::CreateServiceWithoutInitialize, "CreateServiceWithoutInitialize"}, diff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.h index fd0a1e486..ea3b97823 100644 --- a/src/core/hle/service/pctl/pctl.h +++ b/src/core/hle/service/pctl/pctl.h @@ -15,7 +15,7 @@ namespace Service::PCTL { class PCTL final : public Module::Interface { public: explicit PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, - Capability capability); + Capability capability_); ~PCTL() override; }; |