From b39e97458cb2035fac4b973e09cd6fd8b92f577c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 24 Jan 2018 22:43:29 +0100 Subject: [PATCH] Fix unused variables in linear algebra source files --- include/deal.II/lac/lapack_templates.h | 14 +++++++------- source/lac/lapack_full_matrix.cc | 6 +++--- source/lac/sparsity_tools.cc | 24 ++++++++++++++---------- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/include/deal.II/lac/lapack_templates.h b/include/deal.II/lac/lapack_templates.h index ecec4f7365..332b1f6157 100644 --- a/include/deal.II/lac/lapack_templates.h +++ b/include/deal.II/lac/lapack_templates.h @@ -423,9 +423,9 @@ gemv (const char *, const types::blas_int *, const types::blas_int *, const floa /// Template wrapper for LAPACK functions dtrmv and strmv template inline void -trmv (const char *uplo, const char *trans, const char *diag, - const types::blas_int *N, const number *A, const types::blas_int *lda, - number *x, const types::blas_int *incx) +trmv (const char * /*uplo*/, const char * /*trans*/, const char * /*diag*/, + const types::blas_int * /*N*/, const number * /*A*/, const types::blas_int * /*lda*/, + number * /*x*/, const types::blas_int * /*incx*/) { Assert (false, ExcNotImplemented()); } @@ -553,10 +553,10 @@ potrf (const char *uplo, const types::blas_int *n, float *A, const types::blas_i /// Tempalte wrapper for trcon template inline void -trcon(const char *norm, const char *uplo, const char *diag, - const types::blas_int *n, const number *A, const types::blas_int *lda, - number *rcond, - number *work, types::blas_int *iwork, types::blas_int *info) +trcon(const char * /*norm*/, const char * /*uplo*/, const char * /*diag*/, + const types::blas_int * /*n*/, const number * /*A*/, const types::blas_int * /*lda*/, + number * /*rcond*/, + number * /*work*/, types::blas_int * /*iwork*/, types::blas_int * /*info*/) { Assert (false, ExcNotImplemented()); } diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index 3f6cd8bfe7..d56b2ea920 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -320,9 +320,9 @@ namespace template - void cholesky_rank1(LAPACKFullMatrix> &A, - const std::complex a, - const Vector> &v) + void cholesky_rank1(LAPACKFullMatrix > &/*A*/, + const std::complex /*a*/, + const Vector > &/*v*/) { AssertThrow(false, ExcNotImplemented()); } diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index 10a8a78c0e..f8dc0bd58d 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -150,9 +150,9 @@ namespace SparsityTools } - void get_object_list(void *data, int sizeGID, int sizeLID, + void get_object_list(void *data, int /*sizeGID*/, int /*sizeLID*/, ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, - int wgt_dim, float *obj_wgts, int *ierr) + int /*wgt_dim*/, float * /*obj_wgts*/, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); *ierr = ZOLTAN_OK; @@ -171,9 +171,9 @@ namespace SparsityTools } - void get_num_edges_list(void *data, int sizeGID, int sizeLID, + void get_num_edges_list(void *data, int /*sizeGID*/, int /*sizeLID*/, int num_obj, - ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, + ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR /*localID*/, int *numEdges, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); @@ -193,11 +193,11 @@ namespace SparsityTools - void get_edge_list(void *data, int sizeGID, int sizeLID, - int num_obj, ZOLTAN_ID_PTR globalID, ZOLTAN_ID_PTR localID, - int *num_edges, + void get_edge_list(void *data, int /*sizeGID*/, int /*sizeLID*/, + int num_obj, ZOLTAN_ID_PTR /*globalID*/, ZOLTAN_ID_PTR /*localID*/, + int * /*num_edges*/, ZOLTAN_ID_PTR nborGID, int *nborProc, - int wgt_dim, float *ewgts, int *ierr) + int /*wgt_dim*/, float * /*ewgts*/, int *ierr) { SparsityPattern *graph = reinterpret_cast(data); *ierr = ZOLTAN_OK; @@ -232,7 +232,9 @@ namespace SparsityTools // Make sure that ZOLTAN is actually // installed and detected #ifndef DEAL_II_TRILINOS_WITH_ZOLTAN - (void)sparsity_pattern; + (void) sparsity_pattern; + (void) n_partitions; + (void) partition_indices; AssertThrow (false, ExcZOLTANNotInstalled()); #else @@ -354,7 +356,8 @@ namespace SparsityTools // Make sure that ZOLTAN is actually // installed and detected #ifndef DEAL_II_TRILINOS_WITH_ZOLTAN - (void)sparsity_pattern; + (void) sparsity_pattern; + (void) color_indices; AssertThrow (false, ExcZOLTANNotInstalled()); return 0; #else @@ -398,6 +401,7 @@ namespace SparsityTools global_ids.data(), color_exp.data()); + (void) rc; //Check for error code Assert (rc == ZOLTAN_OK , ExcInternalError()); -- 2.39.5