From: young Date: Sat, 19 Oct 2013 14:43:52 +0000 (+0000) Subject: Silence compiler warning in PetscScalar=real. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238ef34f9e39263cc4813b7abdf6682c11e7234d;p=dealii-svn.git Silence compiler warning in PetscScalar=real. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31319 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/lac/petsc_vector_base.h b/deal.II/include/deal.II/lac/petsc_vector_base.h index 2d0017be56..9299fa59d1 100644 --- a/deal.II/include/deal.II/lac/petsc_vector_base.h +++ b/deal.II/include/deal.II/lac/petsc_vector_base.h @@ -1197,6 +1197,7 @@ namespace PETScWrappers #ifndef PETSC_USE_COMPLEX // This is a no op if complex numbers are not defined. AssertThrow (false, ExcNotImplemented ()); + return PetscReal (0); #else return PetscImaginaryPart (static_cast(*this)); #endif