Warning strict-overflow
There are some strict-overflow warnings in dune/geometry/virtualrefinement.cc
:
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc: In member function ‘int Dune::VirtualRefinementImp<topologyId, CoordType, coerceToId, dimension>::nVertices(int) const [with unsigned int topologyId = 0u; CoordType = double; unsigned int coerceToId = 0u; int dimension = 2]’:
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc:298:7: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
int VirtualRefinementImp<topologyId, CoordType, coerceToId, dimension>::
^
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc: In member function ‘int Dune::VirtualRefinementImp<topologyId, CoordType, coerceToId, dimension>::nVertices(int) const [with unsigned int topologyId = 2u; CoordType = double; unsigned int coerceToId = 0u; int dimension = 2]’:
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc:298:7: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc: In member function ‘int Dune::VirtualRefinementImp<topologyId, CoordType, coerceToId, dimension>::SubEntityIteratorBack<codimension>::index() const [with int codimension = 2; unsigned int topologyId = 2u; CoordType = double; unsigned int coerceToId = 0u; int dimension = 2]’:
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc:468:3: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
VirtualRefinementImp<topologyId, CoordType, coerceToId, dimension>::SubEntityIteratorBack<codimension>::
^
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc: In member function ‘Dune::VirtualRefinementImpSubEntityIteratorBackSpecial<topologyId, CoordType, coerceToId, dimension, 0>::IndexVector Dune::VirtualRefinementImpSubEntityIteratorBackSpecial<topologyId, CoordType, coerceToId, dimension, 0>::vertexIndices() const [with unsigned int topologyId = 2u; CoordType = double; unsigned int coerceToId = 0u; int dimension = 2; Dune::VirtualRefinementImpSubEntityIteratorBackSpecial<topologyId, CoordType, coerceToId, dimension, 0>::IndexVector = std::vector<int>]’:
/usr/local_machine/dune-trunk/dune-geometry/dune/geometry/virtualrefinement.cc:375:3: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow]
VirtualRefinementImpSubEntityIteratorBackSpecial<topologyId, CoordType, coerceToId, dimension, 0>::
^