diff --git a/src/nrnpython/nrnpy_p2h.cpp b/src/nrnpython/nrnpy_p2h.cpp index 6193abedd9..70fcda9252 100644 --- a/src/nrnpython/nrnpy_p2h.cpp +++ b/src/nrnpython/nrnpy_p2h.cpp @@ -687,7 +687,7 @@ std::vector call_picklef(const std::vector& fname, int narg) { #include "nrnmpi.h" -std::vector mk_displ(int* cnts) { +static std::vector mk_displ(int* cnts) { std::vector displ(nrnmpi_numprocs + 1); displ[0] = 0; for (int i = 0; i < nrnmpi_numprocs; ++i) {