mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 07:18:22 -04:00
libstrat: enable -Wextra, -Werror
This caught an embarrassingly large number of bugs.
This commit is contained in:
parent
e1fbf27398
commit
7ca83c9d3b
160 changed files with 691 additions and 152 deletions
|
@ -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,
|
||||
));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue