]> https://gitweb.dealii.org/ - dealii.git/commit
base/polynomials_bdm.cc: avoid a compiler warning with gcc-12 13925/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 7 Jun 2022 22:46:14 +0000 (17:46 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 7 Jun 2022 22:46:14 +0000 (17:46 -0500)
commit8bbbefa38f80e7faa6766b4dbe865e8737cda840
treea45808d13987cd96e3bc73448dc06dd617ed0f16
parent800d3a15274aec52b55e00c8cd9068307fac5e7c
base/polynomials_bdm.cc: avoid a compiler warning with gcc-12

gcc-12 in release mode will inline the evaluate function into some
methods of the FE_BDM class. It then rightfully complains that the (now
modified) else branch will write out of bounds.

Despite the fact that we instantiate this polynomials class and the
related FE class for 1d this code has never worked. Thus, fail
prominently with an error message.
source/base/polynomials_bdm.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.