Skip to content

Commit 963ef8c

Browse files
committed
fix mod files for C23
Function declarations that were `func ()` now do not mean `func (any args)`, now they mean `func (void)`: https://gcc.gnu.org/gcc-15/porting_to.html Issue also filed at NEURON: neuronsimulator/nrn#3376
1 parent 78235f0 commit 963ef8c

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

pyNN/neuron/nmodl/gif.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ ENDVERBATIM
208208
: independent of nhost or which host this instance is on
209209
: is desired, since each instance on this cpu draws from
210210
: the same stream
211-
value = scop_random(1)
211+
value = scop_random()
212212
VERBATIM
213213
}
214214
ENDVERBATIM

pyNN/neuron/nmodl/quantal_stp.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ VERBATIM
115115
return value;
116116
} else {
117117
ENDVERBATIM
118-
value = scop_random(1)
118+
value = scop_random()
119119
VERBATIM
120120
}
121121
ENDVERBATIM

pyNN/neuron/nmodl/stochastic_synapse.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ VERBATIM
6868
return value;
6969
} else {
7070
ENDVERBATIM
71-
value = scop_random(1)
71+
value = scop_random()
7272
VERBATIM
7373
}
7474
ENDVERBATIM

pyNN/neuron/nmodl/stochastic_tsodyksmarkram.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ VERBATIM
118118
return value;
119119
} else {
120120
ENDVERBATIM
121-
value = scop_random(1)
121+
value = scop_random()
122122
VERBATIM
123123
}
124124
ENDVERBATIM

pyNN/neuron/nmodl/vecstim.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ NET_RECEIVE (w) {
113113

114114

115115
VERBATIM
116-
extern double* vector_vec();
117-
extern int vector_capacity();
118-
extern void* vector_arg();
116+
extern double* vector_vec(void *);
117+
extern int vector_capacity(void *);
118+
extern void* vector_arg(int);
119119
ENDVERBATIM
120120

121121
PROCEDURE element() {

0 commit comments

Comments
 (0)