summaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvdrv
diff options
context:
space:
mode:
authorGravatar Danila Malyutin2023-09-02 21:45:06 +0400
committerGravatar Danila Malyutin2023-09-03 18:42:10 +0400
commit785e480b62f4ed306e389300a533c73f4e03e2bd (patch)
tree3374c36560b8645f2c0a39e950793e0ce8c5163d /src/core/hle/service/nvdrv
parentMerge pull request #11430 from liamwhite/validation-error-whats-that (diff)
downloadyuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.gz
yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.tar.xz
yuzu-785e480b62f4ed306e389300a533c73f4e03e2bd.zip
msvc: set warning level to /W4 globally
And fix a bunch of warnings
Diffstat (limited to 'src/core/hle/service/nvdrv')
-rw-r--r--src/core/hle/service/nvdrv/core/nvmap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/core/nvmap.cpp b/src/core/hle/service/nvdrv/core/nvmap.cpp
index a51ca5444..0ca05257e 100644
--- a/src/core/hle/service/nvdrv/core/nvmap.cpp
+++ b/src/core/hle/service/nvdrv/core/nvmap.cpp
@@ -160,8 +160,8 @@ u32 NvMap::PinHandle(NvMap::Handle::Id handle) {
160 u32 address{}; 160 u32 address{};
161 auto& smmu_allocator = host1x.Allocator(); 161 auto& smmu_allocator = host1x.Allocator();
162 auto& smmu_memory_manager = host1x.MemoryManager(); 162 auto& smmu_memory_manager = host1x.MemoryManager();
163 while (!(address = 163 while ((address = smmu_allocator.Allocate(
164 smmu_allocator.Allocate(static_cast<u32>(handle_description->aligned_size)))) { 164 static_cast<u32>(handle_description->aligned_size))) == 0) {
165 // Free handles until the allocation succeeds 165 // Free handles until the allocation succeeds
166 std::scoped_lock queueLock(unmap_queue_lock); 166 std::scoped_lock queueLock(unmap_queue_lock);
167 if (auto freeHandleDesc{unmap_queue.front()}) { 167 if (auto freeHandleDesc{unmap_queue.front()}) {