Skip to content

Commit aebdef3

Browse files
Fixed MSVC compiler warning
1 parent 7ec84e7 commit aebdef3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Graphics/GraphicsEngineVulkan/src/VulkanUtilities/VulkanInstance.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,17 @@ VkPhysicalDevice VulkanInstance::SelectPhysicalDeviceForOpenXR(const CreateInfo:
707707

708708
return vkDevice;
709709
#else
710+
# ifdef _MSC_VER
711+
# pragma warning(push)
712+
# pragma warning(disable : 4702) // unreachable code
713+
# endif
714+
710715
LOG_ERROR_AND_THROW("OpenXR is not supported. Use DILIGENT_USE_OPENXR CMake option to enable it.");
711716
return VK_NULL_HANDLE;
717+
718+
# ifdef _MSC_VER
719+
# pragma warning(pop)
720+
# endif
712721
#endif
713722
}
714723

0 commit comments

Comments
 (0)