Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e4c9d58

Browse files
committed
Fix Wextra warnings
1 parent 7ce3677 commit e4c9d58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dae-cpp/mass-matrix.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class MassMatrixIdentity : public MassMatrix
4747
public:
4848
explicit MassMatrixIdentity(const std::size_t N) : MassMatrix(), m_N(N) {}
4949

50-
void operator()(sparse_matrix &M, const double t) const
50+
void operator()(sparse_matrix &M, [[maybe_unused]] const double t) const
5151
{
5252
M.A.resize(m_N, 1.0);
5353
M.i.resize(m_N); // Resize and then overwrite in a loop worked faster than reserve and push_back
@@ -67,7 +67,7 @@ class MassMatrixIdentity : public MassMatrix
6767
class MassMatrixZero : public MassMatrix
6868
{
6969
public:
70-
void operator()(sparse_matrix &M, const double t) const
70+
void operator()(sparse_matrix &M, [[maybe_unused]] const double t) const
7171
{
7272
M.A.clear();
7373
M.i.clear();

dae-cpp/solution-manager.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ struct SolutionManager
4747
* The functor can return `solver_command::decrease_time_step_and_redo` to decrease the time step size and redo the current time step.
4848
* It does nothing by default and returns 0 (`solver_command::continue_integration`).
4949
*/
50-
virtual int operator()(const state_vector &x, const double t)
50+
virtual int operator()([[maybe_unused]] const state_vector &x, [[maybe_unused]] const double t)
5151
{
5252
return 0;
5353
}

0 commit comments

Comments
 (0)