diff options
author | Danila Malyutin <danilaml@users.noreply.github.com> | 2023-09-02 21:45:06 +0400 |
---|---|---|
committer | Danila Malyutin <danilaml@users.noreply.github.com> | 2023-09-03 18:42:10 +0400 |
commit | 785e480b62f4ed306e389300a533c73f4e03e2bd (patch) | |
tree | 3374c36560b8645f2c0a39e950793e0ce8c5163d /src/core/hle/kernel | |
parent | 89a2d48cf8c05f0de31ad001a2506a478f595dee (diff) |
msvc: set warning level to /W4 globally
And fix a bunch of warnings
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/k_capabilities.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp index 90e4e8fb0..e7da7a21d 100644 --- a/src/core/hle/kernel/k_capabilities.cpp +++ b/src/core/hle/kernel/k_capabilities.cpp @@ -156,7 +156,6 @@ Result KCapabilities::MapIoPage_(const u32 cap, KPageTable* page_table) { const u64 phys_addr = MapIoPage{cap}.address.Value() * PageSize; const size_t num_pages = 1; const size_t size = num_pages * PageSize; - R_UNLESS(num_pages != 0, ResultInvalidSize); R_UNLESS(phys_addr < phys_addr + size, ResultInvalidAddress); R_UNLESS(((phys_addr + size - 1) & ~PhysicalMapAllowedMask) == 0, ResultInvalidAddress); |