Skip to content

Commit

Permalink
Reduce warnings scopmath (#3152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu authored Oct 30, 2024
1 parent 185b496 commit 0b8c2af
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/scopmath/force.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ typedef struct Spline {
#define SP0 (Spline*) 0

static Spline* splist = SP0; /* list of splines */
static Spline* steplist = SP0; /* list of steps */
static Spline* lastspline = SP0; /* the spline used on previous call */
static Spline* laststep = SP0; /* the step list used on previous call */

extern int DEFLT;

Expand Down
1 change: 0 additions & 1 deletion src/scopmath/praxis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ int praxis_stop(int i) {
static integer c__1 = 1;
static integer c__2 = 2;
static integer c__0 = 0;
static integer c__10 = 10;
static integer c__4 = 4;
static integer c__3 = 3;

Expand Down
2 changes: 1 addition & 1 deletion src/scopmath/sparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ int _cvode_sparse(void** v, int n, IndexArray x, Array p, int (*fun)(), double**
auto const x_ = [&p, &x](auto arg) -> auto& {
return p[x[arg]];
};
int i, j, ierr;
int i, ierr;
detail::sparse::SparseObj* so;

if (!*prhs) {
Expand Down
3 changes: 1 addition & 2 deletions src/scopmath/sparse_thread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ inline void prmat(SparseObj* so) {

inline void free_elm(SparseObj* so) {
unsigned i;
Elm *el, *elnext;

/* free all elements */
nrn_pool_freeall(so->elmpool);
Expand Down Expand Up @@ -709,7 +708,7 @@ int _cvode_sparse_thread(void** v, int n, IndexArray x, Array p, Callable fun, A
auto const x_ = [&p, &x](auto arg) -> auto& {
return p[x[arg]];
};
int i, j, ierr;
int i, ierr;
SparseObj* so;

so = (SparseObj*) (*v);
Expand Down

0 comments on commit 0b8c2af

Please sign in to comment.