From: Daniel Arndt Date: Sun, 8 Jul 2018 11:22:53 +0000 (+0200) Subject: Avoid spurious warning for older clang compiler X-Git-Tag: v9.1.0-rc1~936^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776c5f1df2a9d579d302d03f21a553162b24a67a;p=dealii.git Avoid spurious warning for older clang compiler --- 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();