From 86ccd63a98e24fc1ed96bfcda45e81154a3c0bcc Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Tue, 4 Jul 2017 14:57:53 +0200 Subject: [PATCH] Enabled warning level 4 in Visual Studio for compilation of vk_mem_alloc.h. --- src/VulkanSample.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/VulkanSample.cpp b/src/VulkanSample.cpp index 7c7fb22..4687943 100644 --- a/src/VulkanSample.cpp +++ b/src/VulkanSample.cpp @@ -27,8 +27,11 @@ #define VK_USE_PLATFORM_WIN32_KHR #include +#pragma warning(push, 4) +#pragma warning(disable: 4127) // warning C4127: conditional expression is constant #define VMA_IMPLEMENTATION #include "vk_mem_alloc.h" +#pragma warning(pop) #define MATHFU_COMPILE_WITHOUT_SIMD_SUPPORT #include @@ -1707,7 +1710,7 @@ int main() RECT rect = { 0, 0, g_SizeX, g_SizeY }; AdjustWindowRectEx(&rect, style, FALSE, exStyle); - HWND hWnd = CreateWindowEx( + CreateWindowEx( exStyle, WINDOW_CLASS_NAME, APP_TITLE_W, style, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, g_hAppInstance, NULL);