From: Nicolas Barnafi Date: Fri, 16 Sep 2022 17:09:13 +0000 (+0200) Subject: Fixed unused variables warning X-Git-Tag: v9.5.0-rc1~947^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b0bbcd8a940d255d0b818eb53b22ea3424c58df;p=dealii.git Fixed unused variables warning --- diff --git a/source/lac/petsc_parallel_sparse_matrix.cc b/source/lac/petsc_parallel_sparse_matrix.cc index b1cb645e96..7bbd637180 100644 --- a/source/lac/petsc_parallel_sparse_matrix.cc +++ b/source/lac/petsc_parallel_sparse_matrix.cc @@ -642,6 +642,12 @@ namespace PETScWrappers AssertThrow(ierr == 0, ExcPETScError(ierr)); # else { + // Use this to avoid unused variables warning + (void)local_rows; + (void)local_active_rows; + (void)local_columns; + (void)local_active_columns; + (void)sparsity_pattern; AssertThrow(false, ExcMessage( "BDDC preconditioner requires PETSc 3.10.0 or newer"));