summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-06 02:41:20 +0200
committerGitHub <noreply@github.com>2019-10-06 02:41:20 +0200
commitdeecd7f074a0547b8fc08a33fdc547eb63859e3e (patch)
treed70efa81b1824d2dc351b7355d5016e75027ed8f /src/core/hle/service/nfp
parentMerge pull request #2943 from DarkLordZach/azure-titlebars-v2 (diff)
parentaudio/audout_u: Change formatting for old clang-format versions (diff)
downloadyuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar.gz
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar.bz2
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar.lz
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar.xz
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.tar.zst
yuzu-deecd7f074a0547b8fc08a33fdc547eb63859e3e.zip
Diffstat (limited to 'src/core/hle/service/nfp')
-rw-r--r--src/core/hle/service/nfp/nfp.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index a42c22d44..aa886cd3e 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -18,8 +18,8 @@
namespace Service::NFP {
namespace ErrCodes {
-constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP,
- -1); // TODO(ogniK): Find the actual error code
+[[maybe_unused]] constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP,
+ -1); // TODO(ogniK): Find the actual error code
constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152);
} // namespace ErrCodes
@@ -35,7 +35,7 @@ Module::Interface::~Interface() = default;
class IUser final : public ServiceFramework<IUser> {
public:
IUser(Module::Interface& nfp_interface, Core::System& system)
- : ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface), system(system) {
+ : ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface) {
static const FunctionInfo functions[] = {
{0, &IUser::Initialize, "Initialize"},
{1, &IUser::Finalize, "Finalize"},
@@ -183,6 +183,8 @@ private:
case DeviceState::TagRemoved:
device_state = DeviceState::Initialized;
break;
+ default:
+ break;
}
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS);
@@ -324,7 +326,6 @@ private:
Kernel::EventPair deactivate_event;
Kernel::EventPair availability_change_event;
const Module::Interface& nfp_interface;
- Core::System& system;
};
void Module::Interface::CreateUserInterface(Kernel::HLERequestContext& ctx) {