Skip to content

Commit

Permalink
Fix the rest of unused parameter warnings
Browse files Browse the repository at this point in the history
Keeping the -Wno-unused-parameters compiler flag because it gives too
much noise from Nvidia Thrust includes.

refs #12
  • Loading branch information
ddemidov committed Feb 6, 2015
1 parent c237cbd commit ff3085b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions amgcl/mpi/pastix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class PaStiX {

struct params {
params() {}
params(const boost::property_tree::ptree &p) {}
params(const boost::property_tree::ptree&) {}
};

/// The number of processes optimal for the given problem size.
Expand Down Expand Up @@ -94,7 +94,7 @@ class PaStiX {
const PRng &p_ptr,
const CRng &p_col,
const VRng &p_val,
const params &prm = params()
const params& = params()
)
: comm(mpi_comm), nrows(n_local_rows), pastix_data(0),
ptr(boost::begin(p_ptr), boost::end(p_ptr)),
Expand Down
4 changes: 2 additions & 2 deletions amgcl/mpi/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ typename boost::disable_if<
void
>::type
process_sdd(
runtime::direct_solver::type direct_solver,
const Func &func
runtime::direct_solver::type,
const Func&
)
{
throw std::logic_error("The relaxation scheme is not supported by the backend");
Expand Down
4 changes: 2 additions & 2 deletions amgcl/mpi/skyline_lu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class skyline_lu {
typedef typename solver::skyline_lu<value_type>::params params;

/// The number of processes optimal for the given problem size.
static int comm_size(int n_global_rows) {
static int comm_size(int /*n_global_rows*/) {
return 1;
}

Expand All @@ -66,7 +66,7 @@ class skyline_lu {
*/
template <class PRng, class CRng, class VRng>
skyline_lu(
MPI_Comm comm,
MPI_Comm,
int n_local_rows,
const PRng &ptr,
const CRng &col,
Expand Down
2 changes: 1 addition & 1 deletion amgcl/runtime.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ typename boost::disable_if<
typename backend::relaxation_is_supported<Backend, Relaxation>::type,
void
>::type
process_amg(const Func &func) {
process_amg(const Func&) {
throw std::logic_error("The relaxation scheme is not supported by the backend");
}

Expand Down
2 changes: 1 addition & 1 deletion amgcl/solver/eigen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class EigenSolver {
};

template <class Matrix>
EigenSolver(const Matrix &A, const params &prm = params())
EigenSolver(const Matrix &A, const params& = params())
: n( backend::rows(A) )
{
S.compute(
Expand Down

0 comments on commit ff3085b

Please sign in to comment.