From 776c5f1df2a9d579d302d03f21a553162b24a67a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sun, 8 Jul 2018 13:22:53 +0200 Subject: [PATCH] Avoid spurious warning for older clang compiler --- examples/step-14/step-14.cc | 24 ++++++++++++------------ examples/step-27/step-27.cc | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/examples/step-14/step-14.cc b/examples/step-14/step-14.cc index 47b659db50..e9d3df7eb5 100644 --- a/examples/step-14/step-14.cc +++ b/examples/step-14/step-14.cc @@ -1277,18 +1277,18 @@ namespace Step14 // Next, we have to define the cells and the vertices they contain. const std::vector::vertices_per_cell>> - cell_vertices = {{0, 1, 5, 6}, - {1, 2, 6, 7}, - {2, 3, 7, 8}, - {3, 4, 8, 9}, - {5, 6, 10, 11}, - {8, 9, 12, 13}, - {10, 11, 14, 15}, - {12, 13, 17, 18}, - {14, 15, 19, 20}, - {15, 16, 20, 21}, - {16, 17, 21, 22}, - {17, 18, 22, 23}}; + cell_vertices = {{{0, 1, 5, 6}}, + {{1, 2, 6, 7}}, + {{2, 3, 7, 8}}, + {{3, 4, 8, 9}}, + {{5, 6, 10, 11}}, + {{8, 9, 12, 13}}, + {{10, 11, 14, 15}}, + {{12, 13, 17, 18}}, + {{14, 15, 19, 20}}, + {{15, 16, 20, 21}}, + {{16, 17, 21, 22}}, + {{17, 18, 22, 23}}}; const unsigned int n_cells = cell_vertices.size(); diff --git a/examples/step-27/step-27.cc b/examples/step-27/step-27.cc index 8a1871d25d..9f3a32f8de 100644 --- a/examples/step-27/step-27.cc +++ b/examples/step-27/step-27.cc @@ -553,18 +553,18 @@ namespace Step27 {-1.0, +1.0}, {-0.5, +1.0}, {+0.0, +1.0}, {+0.5, +1.0}, {+1.0, +1.0}}; const std::vector::vertices_per_cell>> - cell_vertices = {{0, 1, 5, 6}, - {1, 2, 6, 7}, - {2, 3, 7, 8}, - {3, 4, 8, 9}, - {5, 6, 10, 11}, - {8, 9, 12, 13}, - {10, 11, 14, 15}, - {12, 13, 17, 18}, - {14, 15, 19, 20}, - {15, 16, 20, 21}, - {16, 17, 21, 22}, - {17, 18, 22, 23}}; + cell_vertices = {{{0, 1, 5, 6}}, + {{1, 2, 6, 7}}, + {{2, 3, 7, 8}}, + {{3, 4, 8, 9}}, + {{5, 6, 10, 11}}, + {{8, 9, 12, 13}}, + {{10, 11, 14, 15}}, + {{12, 13, 17, 18}}, + {{14, 15, 19, 20}}, + {{15, 16, 20, 21}}, + {{16, 17, 21, 22}}, + {{17, 18, 22, 23}}}; const unsigned int n_cells = cell_vertices.size(); -- 2.39.5