Warning C26812: Enum type VkResult is unscoped. Prefer enum class over enum

Viewed 604

I have found this question but its solution does not help me.

I include the Vulkan headers as follows:

#pragma warning(push, 0)
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#pragma warning(pop)

However, I still encounter this warning. I tried restarting my Visual Studio 2019, however the problem remains. How do I solve this problem?

0 Answers
Related