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/smoke/Simulation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/smoke/Simulation.cpp') diff --git a/demos/smoke/Simulation.cpp b/demos/smoke/Simulation.cpp index 67cccfb7..36e3f5b6 100644 --- a/demos/smoke/Simulation.cpp +++ b/demos/smoke/Simulation.cpp @@ -25,7 +25,7 @@ namespace { class MeshPicker { public: MeshPicker() : - pattern_({ + pattern_({{ Meshes::MESH_PYRAMID, Meshes::MESH_ICOSPHERE, Meshes::MESH_TEAPOT, @@ -36,7 +36,7 @@ public: Meshes::MESH_PYRAMID, Meshes::MESH_PYRAMID, Meshes::MESH_PYRAMID, - }), cur_(-1) + }}), cur_(-1) { } -- cgit v1.2.3