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

@@ -133,6 +133,8 @@ namespace ams::scs {
}
void CommandProcessor::OnProcessJitDebug(u64 id, s32 socket, os::ProcessId process_id) {
AMS_UNUSED(process_id);
SendJitDebug(socket, id);
}
@@ -142,6 +144,8 @@ namespace ams::scs {
}
bool CommandProcessor::ProcessCommand(const CommandHeader &header, const u8 *body, s32 socket) {
AMS_UNUSED(body);
switch (header.command) {
/* TODO: Support commands. */
default:

View File

@@ -35,6 +35,8 @@ namespace ams::scs {
}
void Deallocate(void *p, size_t size) {
AMS_UNUSED(size);
std::scoped_lock lk(g_mutex);
lmem::FreeToExpHeap(g_tenv_heap_handle, p);
}