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

@ -35,11 +35,16 @@ namespace ams::lm {
}
Result RemoteLogService::OpenLogger(sf::Out<sf::SharedPointer<::ams::lm::ILogger>> out, const sf::ClientProcessId &client_process_id) {
AMS_UNUSED(client_process_id);
/* Send libnx command. */
::Service logger_srv;
{
u64 pid_placeholder;
#define NX_SERVICE_ASSUME_NON_DOMAIN
R_TRY(serviceDispatch(&m_srv, 0,
R_TRY(serviceDispatchIn(&m_srv, 0, pid_placeholder,
.in_send_pid = true,
.out_num_objects = 1,
.out_objects = &logger_srv,
));

View file

@ -44,6 +44,7 @@ namespace ams::lm::srv {
}
void DeallocateForFs(void *ptr, size_t size) {
AMS_UNUSED(size);
return lmem::FreeToExpHeap(g_fs_heap_handle, ptr);
}

View file

@ -91,6 +91,10 @@ namespace ams::lm::srv {
diag::impl::PutImpl(meta, txt, size);
}, const_cast<diag::LogMetaData *>(std::addressof(log_meta)));
}
#else
{
AMS_UNUSED(message);
}
#endif
}