Skip to content

Commit

Permalink
Fixed MSVC compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Dec 16, 2024
1 parent 7ec84e7 commit aebdef3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,17 @@ VkPhysicalDevice VulkanInstance::SelectPhysicalDeviceForOpenXR(const CreateInfo:

return vkDevice;
#else
# ifdef _MSC_VER
# pragma warning(push)
# pragma warning(disable : 4702) // unreachable code
# endif

LOG_ERROR_AND_THROW("OpenXR is not supported. Use DILIGENT_USE_OPENXR CMake option to enable it.");
return VK_NULL_HANDLE;

# ifdef _MSC_VER
# pragma warning(pop)
# endif
#endif
}

Expand Down

0 comments on commit aebdef3

Please sign in to comment.