From d3e18edbfe28f2e06147222d0a9d4f09fceaacea Mon Sep 17 00:00:00 2001 From: Karl Schultz Date: Thu, 29 Dec 2016 15:59:06 -0700 Subject: build: Cleanup warnings when compiling with clang Travis-CI is building this repo with gcc and clang. This commit fixes warnings reported by clang but not by gcc. All the fixes involved adding an extra set of braces in initializers. Change-Id: I88e7841d9ab13afe2e45362b8f85261863d5b7fa --- demos/cube.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demos/cube.cpp') diff --git a/demos/cube.cpp b/demos/cube.cpp index b28476a5..ffbb30c9 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -525,7 +525,7 @@ struct Demo { vk::CommandBufferUsageFlagBits::eSimultaneousUse); vk::ClearValue const clearValues[2] = { - vk::ClearColorValue(std::array({0.2f, 0.2f, 0.2f, 0.2f})), + vk::ClearColorValue(std::array({{0.2f, 0.2f, 0.2f, 0.2f}})), vk::ClearDepthStencilValue(1.0f, 0u)}; auto const passInfo = -- cgit v1.2.3