From 6b0bbcd8a940d255d0b818eb53b22ea3424c58df Mon Sep 17 00:00:00 2001 From: Nicolas Barnafi Date: Fri, 16 Sep 2022 19:09:13 +0200 Subject: [PATCH] Fixed unused variables warning --- source/lac/petsc_parallel_sparse_matrix.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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")); -- 2.39.5