diff --git a/libraries/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp b/libraries/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp index 7d25d64..b70c8d0 100644 --- a/libraries/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp +++ b/libraries/libstratosphere/source/os/impl/os_debug_impl.os.windows.hpp @@ -27,7 +27,10 @@ AMS_ASSERT(out_size != nullptr); /* Get the current stack by NT_TIB */ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Warray-bounds" auto *tib = reinterpret_cast(::NtCurrentTeb()); + #pragma GCC diagnostic pop *out_stack = reinterpret_cast(tib->StackLimit); *out_size = reinterpret_cast(tib->StackBase) - reinterpret_cast(tib->StackLimit);