From 15178221c3f643666b2918a66fe011ef9a343cc4 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 25 Sep 2012 12:32:14 +0000 Subject: [PATCH] Use a void* in the argument list of MatShellGetContext as required by the compiler. git-svn-id: https://svn.dealii.org/trunk@26719 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_matrix_free.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/source/lac/petsc_matrix_free.cc b/deal.II/source/lac/petsc_matrix_free.cc index d9a6ae207b..24ffc9a68e 100755 --- a/deal.II/source/lac/petsc_matrix_free.cc +++ b/deal.II/source/lac/petsc_matrix_free.cc @@ -246,12 +246,12 @@ namespace PETScWrappers // object and link the given matrix A // to the matrix-vector multiplication // of this MatrixFree object, - MatrixFree *this_object; + void *this_object; int ierr = MatShellGetContext (A, &this_object); AssertThrow (ierr == 0, ExcPETScError(ierr)); // call vmult of this object: - this_object->vmult (dst, src); + reinterpret_cast(this_object)->vmult (dst, src); return (0); } -- 2.39.5