mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-25 16:24:35 +00:00
Made clang-cl use the right warning flags
This commit is contained in:
parent
5e5b446d41
commit
1daf83f541
@ -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
|
||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:
|
||||
$<$<OR:$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>,$<AND:$<CXX_COMPILER_ID:Clang>,$<NOT:$<STREQUAL:"x${CMAKE_CXX_SIMULATE_ID}","xMSVC">>>>:
|
||||
-Wall
|
||||
-Wextra
|
||||
-pedantic-errors
|
||||
-Wconversion
|
||||
-Wsign-conversion>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:
|
||||
$<$<OR:$<CXX_COMPILER_ID:MSVC>,$<AND:$<CXX_COMPILER_ID:Clang>,$<STREQUAL:"x${CMAKE_CXX_SIMULATE_ID}","xMSVC">>>:
|
||||
/WX
|
||||
/W4>
|
||||
)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user