diff options
| author | 2021-05-16 01:46:30 -0400 | |
|---|---|---|
| committer | 2021-05-16 03:43:16 -0400 | |
| commit | 9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7 (patch) | |
| tree | 54d6c5a6b319a10522b068caf2b0600c8f27876a /src/core/hle/service/pctl | |
| parent | Merge pull request #6316 from ameerj/title-fix (diff) | |
| download | yuzu-9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7.tar.gz yuzu-9a07ed53ebe4e27ef1a14e0469037cab9fb7b1e7.tar.xz yuzu-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 @@ | |||
| 7 | namespace Service::PCTL { | 7 | namespace Service::PCTL { |
| 8 | 8 | ||
| 9 | PCTL::PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, | 9 | PCTL::PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, |
| 10 | Capability capability) | 10 | Capability capability_) |
| 11 | : Interface{system_, std::move(module_), name, capability} { | 11 | : Interface{system_, std::move(module_), name, capability_} { |
| 12 | static const FunctionInfo functions[] = { | 12 | static const FunctionInfo functions[] = { |
| 13 | {0, &PCTL::CreateService, "CreateService"}, | 13 | {0, &PCTL::CreateService, "CreateService"}, |
| 14 | {1, &PCTL::CreateServiceWithoutInitialize, "CreateServiceWithoutInitialize"}, | 14 | {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 { | |||
| 15 | class PCTL final : public Module::Interface { | 15 | class PCTL final : public Module::Interface { |
| 16 | public: | 16 | public: |
| 17 | explicit PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, | 17 | explicit PCTL(Core::System& system_, std::shared_ptr<Module> module_, const char* name, |
| 18 | Capability capability); | 18 | Capability capability_); |
| 19 | ~PCTL() override; | 19 | ~PCTL() override; |
| 20 | }; | 20 | }; |
| 21 | 21 | ||