From: Wolfgang Bangerth Date: Mon, 29 Feb 2016 21:09:04 +0000 (-0600) Subject: Avoid a warning about a dangling 'else'. X-Git-Tag: v8.5.0-rc1~1262^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c69c994e253d36e37ddb03502f44b90eedad16;p=dealii.git Avoid a warning about a dangling 'else'. --- diff --git a/source/grid/manifold.cc b/source/grid/manifold.cc index 4aaf6d3aa0..42f2e8c281 100644 --- a/source/grid/manifold.cc +++ b/source/grid/manifold.cc @@ -305,10 +305,12 @@ FlatManifold::get_tangent_vector (const Point &x1, // around (i.e., via the periodic box) for (unsigned int d=0; d tolerance) - if (direction[d] < -periodicity[d]/2) - direction[d] += periodicity[d]; - else if (direction[d] > periodicity[d]/2) - direction[d] -= periodicity[d]; + { + if (direction[d] < -periodicity[d]/2) + direction[d] += periodicity[d]; + else if (direction[d] > periodicity[d]/2) + direction[d] -= periodicity[d]; + } return direction; }