]> https://gitweb.dealii.org/ - dealii.git/commit
Fix two minor warnings in BoundingBox.
authorDavid Wells <drwells@email.unc.edu>
Fri, 28 Aug 2020 13:27:51 +0000 (09:27 -0400)
committerDavid Wells <drwells@email.unc.edu>
Fri, 28 Aug 2020 13:28:35 +0000 (09:28 -0400)
commit4cb57d24178b23c41bab5dab9829ac180540513e
treec80fa39a21a95491f1233731472d8ea8476f132f
parent79ec5fcdb524b7d1f541abcb17f2a002e03393bb
Fix two minor warnings in BoundingBox.

GCC 10.2.0 has two new warnings:
1. Whenever dim is unsigned, equal to 0, and we check dim < 0 we get a type
   limits warning.
2. When spacedim = 2 we get a warning that both OR statements are equivalent.
   Make GCC happy by subtracting instead (and make things clearer by switching
   to a signed dimension).
include/deal.II/base/bounding_box.h
source/base/bounding_box.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.