mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 14:35:17 -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
|
@ -831,7 +831,7 @@ namespace ams::sdmmc::impl {
|
|||
void SdHostStandardController::UnregisterDeviceVirtualAddress(uintptr_t buffer, size_t buffer_size, ams::dd::DeviceVirtualAddress buffer_device_virtual_address) {
|
||||
/* Find and clear the buffer info. */
|
||||
for (auto &info : this->buffer_infos) {
|
||||
if (info.buffer_address == 0) {
|
||||
if (info.buffer_address == buffer) {
|
||||
AMS_ABORT_UNLESS(info.buffer_size == buffer_size);
|
||||
AMS_ABORT_UNLESS(info.buffer_device_virtual_address == buffer_device_virtual_address);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue