From: mike Date: Tue, 23 Sep 2003 21:36:10 +0000 (+0000) Subject: Work around a problem with conversions from const char* to X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f96ea216cd329ec07f249ec8734a1b196c73223;p=dealii-svn.git Work around a problem with conversions from const char* to char*. Aparently one of the tecplot functions has a wrong signature and newer gccs don't like the conversion any more. git-svn-id: https://svn.dealii.org/trunk@8008 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.cc b/deal.II/base/source/data_out_base.cc index 0d187a74d4..0984b6d71b 100644 --- a/deal.II/base/source/data_out_base.cc +++ b/deal.II/base/source/data_out_base.cc @@ -3493,21 +3493,23 @@ void DataOutBase::write_tecplot_binary (const std::vector > int ierr = 0, num_nodes = static_cast(n_nodes), num_cells = static_cast(n_cells); - + + char dot[2] = {'.', 0}; ierr = TECINI (NULL, tecVarNames, file_name, - static_cast("."), + dot, &tec_debug, &is_double); Assert (ierr == 0, ExcErrorOpeningTecplotFile(file_name)); - + + char FEBLOCK[] = {'F','E','B','L','O','C','K',0}; ierr = TECZNE (NULL, &num_nodes, &num_cells, &cell_type, - static_cast("FEBLOCK"), + FEBLOCK, NULL); Assert (ierr == 0, ExcTecplotAPIError());