From b444932260a5e0416fbdd7bb97b0cefaf1558efa Mon Sep 17 00:00:00 2001 From: Cody Northrop Date: Mon, 1 Apr 2019 16:35:25 -0600 Subject: android: Make clang happy with braces Fixes error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] Change-Id: Id090c82ebfb2b9a72e84967b98516bbf43cc6513 --- layers/descriptor_sets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index 67b0b1b56..9cb7df2b9 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -1507,7 +1507,7 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout if ((type == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE) || (type == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER)) { // Test that the layout is compatible with the descriptorType for the two sampled image types const static std::array valid_layouts = { - VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL}; + {VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, VK_IMAGE_LAYOUT_GENERAL}}; struct ExtensionLayout { VkImageLayout layout; -- cgit v1.2.3