From: David Wells Date: Sat, 11 Apr 2015 12:47:30 +0000 (-0400) Subject: Use the standard convention for error codes. X-Git-Tag: v8.3.0-rc1~278^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22cd86c99435a443d59dc1abbca31075f9c87df4;p=dealii.git Use the standard convention for error codes. --- diff --git a/source/lac/petsc_matrix_base.cc b/source/lac/petsc_matrix_base.cc index b496dbee86..f07a94cb78 100644 --- a/source/lac/petsc_matrix_base.cc +++ b/source/lac/petsc_matrix_base.cc @@ -629,8 +629,8 @@ namespace PETScWrappers MatrixBase::size_type row; for (row = loc_range.first; row < loc_range.second; ++row) { - int ierr; - ierr = MatGetRow(*this, row, &ncols, &colnums, &values); + int ierr = MatGetRow(*this, row, &ncols, &colnums, &values); + (void)ierr; AssertThrow (ierr == 0, MatrixBase::ExcPETScError(ierr)); for (PetscInt col = 0; col < ncols; ++col)