mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -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
|
@ -70,10 +70,12 @@ namespace ams::sf {
|
|||
constinit DefaultAllocatorImpl g_default_allocator_impl = {};
|
||||
|
||||
inline void *DefaultAllocate(size_t size, size_t align) {
|
||||
AMS_UNUSED(align);
|
||||
return ::operator new(size, std::nothrow);
|
||||
}
|
||||
|
||||
inline void DefaultDeallocate(void *ptr, size_t size, size_t align) {
|
||||
AMS_UNUSED(size, align);
|
||||
return ::operator delete(ptr, std::nothrow);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue