From 8e5f275ebb6c7f1af2456711f5e34bfba09bda3e Mon Sep 17 00:00:00 2001 From: Uwe Koecher Date: Wed, 17 Jul 2013 19:51:11 +0000 Subject: [PATCH] changed vtk_cell_type dimension to 5, to allow dim=4 instantiation, as supposed by Wolfgang git-svn-id: https://svn.dealii.org/trunk@30025 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/data_out_base.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/source/base/data_out_base.cc b/deal.II/source/base/data_out_base.cc index 6e414d7e1f..17cd9b2e04 100644 --- a/deal.II/source/base/data_out_base.cc +++ b/deal.II/source/base/data_out_base.cc @@ -300,9 +300,13 @@ namespace }; #endif - static unsigned int vtk_cell_type[4] = + // NOTE: (UK) The dimension of the array is choosen to 5 to allow the choice + // DataOutBase in general + // Wolfgang supposed that we don't need it in general, but however this + // choice avoids a -Warray-bounds check warning + static unsigned int vtk_cell_type[5] = { - 0, 3, 9, 12 + 0, 3, 9, 12, static_cast(-1) }; //----------------------------------------------------------------------// -- 2.39.5