libstrat: enable -Wextra, -Werror

This caught an embarrassingly large number of bugs.
This commit is contained in:
Michael Scire
2021-10-06 15:20:48 -07:00
parent e1fbf27398
commit 7ca83c9d3b
160 changed files with 691 additions and 152 deletions

View File

@@ -68,11 +68,13 @@ namespace ams::lr {
Result OpenAddOnContentLocationResolver(AddOnContentLocationResolver *out) {
/* TODO: libnx binding */
AMS_UNUSED(out);
AMS_ABORT();
}
Result RefreshLocationResolver(ncm::StorageId storage_id) {
/* TODO: libnx binding */
AMS_UNUSED(storage_id);
AMS_ABORT();
}
}

View File

@@ -44,7 +44,8 @@ namespace ams::lr {
}
Result RedirectOnlyLocationResolverImpl::ResolveDataPath(sf::Out<Path> out, ncm::DataId id) {
return ResultDataNotFound();
AMS_UNUSED(out, id);
return lr::ResultDataNotFound();
}
Result RedirectOnlyLocationResolverImpl::RedirectApplicationControlPathDeprecated(const Path &path, ncm::ProgramId id) {

View File

@@ -81,11 +81,13 @@ namespace ams::lr {
Result RedirectApplicationProgramPathDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RedirectApplicationProgramPath(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
@@ -96,6 +98,7 @@ namespace ams::lr {
Result ClearApplicationRedirection(const sf::InArray<ncm::ProgramId> &excluding_ids) {
/* TODO: libnx bindings */
AMS_UNUSED(excluding_ids);
AMS_ABORT();
}
@@ -105,41 +108,49 @@ namespace ams::lr {
Result EraseApplicationControlRedirection(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
Result EraseApplicationHtmlDocumentRedirection(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
Result EraseApplicationLegalInformationRedirection(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
Result ResolveProgramPathForDebug(sf::Out<Path> out, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(out, id);
AMS_ABORT();
}
Result RedirectProgramPathForDebug(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RedirectApplicationProgramPathForDebugDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RedirectApplicationProgramPathForDebug(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
Result EraseProgramRedirectionForDebug(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
};

View File

@@ -34,56 +34,67 @@ namespace ams::lr {
Result RegisterProgramPathDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RegisterProgramPath(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
Result UnregisterProgramPath(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
Result RedirectProgramPathDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RedirectProgramPath(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
Result ResolveHtmlDocumentPath(sf::Out<Path> out, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(out, id);
AMS_ABORT();
}
Result RegisterHtmlDocumentPathDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RegisterHtmlDocumentPath(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
Result UnregisterHtmlDocumentPath(ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(id);
AMS_ABORT();
}
Result RedirectHtmlDocumentPathDeprecated(const Path &path, ncm::ProgramId id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id);
AMS_ABORT();
}
Result RedirectHtmlDocumentPath(const Path &path, ncm::ProgramId id, ncm::ProgramId owner_id) {
/* TODO: libnx bindings */
AMS_UNUSED(path, id, owner_id);
AMS_ABORT();
}
@@ -94,6 +105,7 @@ namespace ams::lr {
Result RefreshExcluding(const sf::InArray<ncm::ProgramId> &ids) {
/* TODO: libnx bindings */
AMS_UNUSED(ids);
AMS_ABORT();
}
};