Skip to content

Commit 86ccd63

Browse files
Enabled warning level 4 in Visual Studio for compilation of vk_mem_alloc.h.
1 parent b2c2d3b commit 86ccd63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/VulkanSample.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
#define VK_USE_PLATFORM_WIN32_KHR
2828
#include <vulkan/vulkan.h>
2929

30+
#pragma warning(push, 4)
31+
#pragma warning(disable: 4127) // warning C4127: conditional expression is constant
3032
#define VMA_IMPLEMENTATION
3133
#include "vk_mem_alloc.h"
34+
#pragma warning(pop)
3235

3336
#define MATHFU_COMPILE_WITHOUT_SIMD_SUPPORT
3437
#include <mathfu/glsl_mappings.h>
@@ -1707,7 +1710,7 @@ int main()
17071710
RECT rect = { 0, 0, g_SizeX, g_SizeY };
17081711
AdjustWindowRectEx(&rect, style, FALSE, exStyle);
17091712

1710-
HWND hWnd = CreateWindowEx(
1713+
CreateWindowEx(
17111714
exStyle, WINDOW_CLASS_NAME, APP_TITLE_W, style,
17121715
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
17131716
NULL, NULL, g_hAppInstance, NULL);

0 commit comments

Comments
 (0)