From: Daniel Arndt Date: Tue, 9 Jul 2019 18:59:24 +0000 (-0400) Subject: Fix a few gcc-9 warninigs in tests X-Git-Tag: v9.2.0-rc1~1395^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7676362e9c34bdeea57612a22103461dbc6d5bfd;p=dealii.git Fix a few gcc-9 warninigs in tests --- diff --git a/tests/mpi/periodicity_06.cc b/tests/mpi/periodicity_06.cc index 9c4b960eca..062649ce08 100644 --- a/tests/mpi/periodicity_06.cc +++ b/tests/mpi/periodicity_06.cc @@ -134,7 +134,7 @@ test(const unsigned numRefinementLevels = 2) if (dist < 1e-08) cell->set_refine_flag(); } - catch (typename MappingQ1::ExcTransformationFailed) + catch (const typename MappingQ1::ExcTransformationFailed &) {} } triangulation.execute_coarsening_and_refinement(); diff --git a/tests/mpi/periodicity_07.cc b/tests/mpi/periodicity_07.cc index d7d0cc47fe..ba4d6c55c5 100644 --- a/tests/mpi/periodicity_07.cc +++ b/tests/mpi/periodicity_07.cc @@ -107,7 +107,7 @@ test(const unsigned numRefinementLevels = 2) if (dist < 1e-08) cell->set_refine_flag(); } - catch (typename MappingQ1::ExcTransformationFailed) + catch (const typename MappingQ1::ExcTransformationFailed &) {} } triangulation.execute_coarsening_and_refinement();