Skip to content

Commit

Permalink
Avoid -Wmissing-field-initializers warning on GCC 4.9.2.
Browse files Browse the repository at this point in the history
The previous syntax is correct and should be accepted by C++11
conforming compilers, unfortunately we still have to support some
not-quite-standards-conforming compilers.

Refs #1613.
Refs #1593.
  • Loading branch information
jwpeterson committed Mar 8, 2018
1 parent e614ab0 commit 222f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/tree_node.C
Expand Up @@ -500,7 +500,7 @@ const Elem * TreeNode<N>::find_element_in_children (const Point & p,
libmesh_assert (!this->active());

// value-initialization sets all array members to false
std::array<bool,N> searched_child{};
auto searched_child = std::array<bool, N>();

// First only look in the children whose bounding box
// contain the point p.
Expand Down

0 comments on commit 222f7e4

Please sign in to comment.