Skip to content

Commit ca5bbf4

Browse files
committed
Vulkan test: Fix warning suggesting braces
warning: suggest braces around initialization of subobject [-Wmissing-braces] Change-Id: Ibaa2169bb26dae98f3522ed1ffb798d2c5282d70 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
1 parent 7e0577a commit ca5bbf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/auto/gui/qvulkan/tst_qvulkan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void TestVulkanRenderer::startNextFrame()
396396
{
397397
++testVulkan.startNextFrameCount;
398398

399-
VkClearColorValue clearColor = { 0, 1, 0, 1 };
399+
VkClearColorValue clearColor = { { 0, 1, 0, 1 } };
400400
VkClearDepthStencilValue clearDS = { 1, 0 };
401401
VkClearValue clearValues[2];
402402
memset(clearValues, 0, sizeof(clearValues));

0 commit comments

Comments
 (0)