VERY experimental Nintendo Switch 2 emulator
C++
service/nvdrv: Silence -Wswitch
ReinUsesLispac7d5ab87fec
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cppindex 6bc053f273..07c88465ea 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_as_gpu.cpp@@ -45,6 +45,8 @@ u32 nvhost_as_gpu::ioctl(Ioctl command, const std::vector<u8>& input, const std:return GetVARegions(input, output);case IoctlCommand::IocUnmapBufferCommand:return UnmapBuffer(input, output);+ default:+ break;}if (static_cast<IoctlCommand>(command.cmd.Value()) == IoctlCommand::IocRemapCommand)diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cppindex ff6b1abaeb..eb88fee1b9 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl.cpp@@ -38,9 +38,10 @@ u32 nvhost_ctrl::ioctl(Ioctl command, const std::vector<u8>& input, const std::vreturn IocCtrlEventUnregister(input, output);case IoctlCommand::IocCtrlEventSignalCommand:return IocCtrlEventSignal(input, output);+ default:+ UNIMPLEMENTED_MSG("Unimplemented ioctl");+ return 0;}- UNIMPLEMENTED_MSG("Unimplemented ioctl");- return 0;}u32 nvhost_ctrl::NvOsGetConfigU32(const std::vector<u8>& input, std::vector<u8>& output) {diff --git a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cppindex 389ace76fb..cc2192e5ca 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_ctrl_gpu.cpp@@ -40,9 +40,10 @@ u32 nvhost_ctrl_gpu::ioctl(Ioctl command, const std::vector<u8>& input,return FlushL2(input, output);case IoctlCommand::IocGetGpuTime:return GetGpuTime(input, output);+ default:+ UNIMPLEMENTED_MSG("Unimplemented ioctl");+ return 0;}- UNIMPLEMENTED_MSG("Unimplemented ioctl");- return 0;}u32 nvhost_ctrl_gpu::GetCharacteristics(const std::vector<u8>& input, std::vector<u8>& output,diff --git a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cppindex 2b8d1bef64..9de0ace224 100644--- a/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp+++ b/src/core/hle/service/nvdrv/devices/nvhost_gpu.cpp@@ -44,6 +44,8 @@ u32 nvhost_gpu::ioctl(Ioctl command, const std::vector<u8>& input, const std::vereturn GetWaitbase(input, output);case IoctlCommand::IocChannelSetTimeoutCommand:return ChannelSetTimeout(input, output);+ default:+ break;}if (command.group == NVGPU_IOCTL_MAGIC) {