libstrat: enable -Wextra, -Werror
This caught an embarrassingly large number of bugs.
This commit is contained in:
@@ -160,6 +160,8 @@ namespace ams::sf::cmif {
|
||||
}
|
||||
|
||||
void DomainServiceObjectProcessor::SetOutObjects(const cmif::ServiceDispatchContext &ctx, const HipcRequest &response, ServiceObjectHolder *out_objects, DomainObjectId *selected_ids) {
|
||||
AMS_UNUSED(ctx, response);
|
||||
|
||||
const size_t num_out_objects = this->GetOutObjectCount();
|
||||
|
||||
/* Copy input object IDs from command impl (normally these are Invalid, in mitm they should be set). */
|
||||
|
||||
@@ -277,6 +277,7 @@ namespace ams::sf::hipc {
|
||||
|
||||
Result ServerSessionManager::DispatchManagerRequest(ServerSession *session, const cmif::PointerAndSize &in_message, const cmif::PointerAndSize &out_message) {
|
||||
/* This will get overridden by ... WithDomain class. */
|
||||
AMS_UNUSED(session, in_message, out_message);
|
||||
return sf::ResultNotSupported();
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user