From 1daf83f541001f0ae6fff949379165402702ed1a Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Sun, 3 May 2020 21:54:40 -0600 Subject: [PATCH] Made clang-cl use the right warning flags --- CMakeLists.txt | 4 ++-- example/triangle.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 289f576..d20e9ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,13 +9,13 @@ add_library(vk-bootstrap::vk-bootstrap ALIAS vk-bootstrap) add_library(vk-bootstrap-compiler-warnings INTERFACE) target_compile_options(vk-bootstrap-compiler-warnings INTERFACE - $<$,$,$>: + $<$,$,$,$>>>: -Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion> - $<$: + $<$,$,$>>: /WX /W4> ) diff --git a/example/triangle.cpp b/example/triangle.cpp index dcd0dab..69405fa 100644 --- a/example/triangle.cpp +++ b/example/triangle.cpp @@ -357,8 +357,7 @@ int create_command_buffers (Init& init, RenderData& data) { render_pass_info.framebuffer = data.framebuffers[i]; render_pass_info.renderArea.offset = { 0, 0 }; render_pass_info.renderArea.extent = init.swapchain.extent; - - VkClearValue clearColor = { 0.0f, 0.0f, 0.0f, 1.0f }; + VkClearValue clearColor{ { { 0.0f, 0.0f, 0.0f, 1.0f } } }; render_pass_info.clearValueCount = 1; render_pass_info.pClearValues = &clearColor;