strat: build sysmodules with -Wextra/-Werror
This commit is contained in:
@@ -389,6 +389,7 @@ namespace ams::dmnt {
|
||||
}
|
||||
} else {
|
||||
/* TODO aarch32 branch decoding */
|
||||
AMS_UNUSED(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1096,6 +1096,7 @@ namespace ams::dmnt {
|
||||
reply = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case svc::DebugEvent_ExitThread:
|
||||
{
|
||||
AMS_DMNT2_GDB_LOG_DEBUG("ExitThread %lx\n", thread_id);
|
||||
|
||||
@@ -91,6 +91,8 @@ namespace ams::dmnt {
|
||||
}
|
||||
|
||||
Result HardwareBreakPoint::Clear(DebugProcess *debug_process) {
|
||||
AMS_UNUSED(debug_process);
|
||||
|
||||
Result result = svc::ResultInvalidArgument();
|
||||
if (m_in_use) {
|
||||
AMS_DMNT2_GDB_LOG_DEBUG("HardwareBreakPoint::Clear %p 0x%lx\n", this, m_address);
|
||||
|
||||
@@ -93,6 +93,8 @@ namespace ams::dmnt {
|
||||
}
|
||||
|
||||
Result WatchPoint::Clear(DebugProcess *debug_process) {
|
||||
AMS_UNUSED(debug_process);
|
||||
|
||||
Result result = svc::ResultInvalidArgument();
|
||||
if (m_in_use) {
|
||||
AMS_DMNT2_GDB_LOG_DEBUG("WatchPoint::Clear %p 0x%lx\n", this, m_address);
|
||||
|
||||
@@ -95,38 +95,44 @@ void __appExit(void) {
|
||||
|
||||
namespace ams {
|
||||
|
||||
void *Malloc(size_t size) {
|
||||
void *Malloc(size_t) {
|
||||
AMS_ABORT("ams::Malloc was called");
|
||||
}
|
||||
|
||||
void Free(void *ptr) {
|
||||
void Free(void *) {
|
||||
AMS_ABORT("ams::Free was called");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void *operator new(size_t size) {
|
||||
void *operator new(size_t) {
|
||||
AMS_ABORT("operator new(size_t) was called");
|
||||
}
|
||||
|
||||
void operator delete(void *p) {
|
||||
void operator delete(void *) {
|
||||
AMS_ABORT("operator delete(void *) was called");
|
||||
}
|
||||
|
||||
void *__libnx_alloc(size_t size) {
|
||||
void operator delete(void *, size_t) {
|
||||
AMS_ABORT("operator delete(void *, size_t) was called");
|
||||
}
|
||||
|
||||
void *__libnx_alloc(size_t) {
|
||||
AMS_ABORT("__libnx_alloc was called");
|
||||
}
|
||||
|
||||
void *__libnx_aligned_alloc(size_t alignment, size_t size) {
|
||||
void *__libnx_aligned_alloc(size_t, size_t) {
|
||||
AMS_ABORT("__libnx_aligned_alloc was called");
|
||||
}
|
||||
|
||||
void __libnx_free(void *mem) {
|
||||
void __libnx_free(void *) {
|
||||
AMS_ABORT("__libnx_free was called");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
AMS_UNUSED(argc, argv);
|
||||
|
||||
/* TODO ThreadName */
|
||||
|
||||
/* Initialize htcs. */
|
||||
|
||||
Reference in New Issue
Block a user