diff --git a/src/parallel/bbs.cpp b/src/parallel/bbs.cpp index c27d2286e3..8650139585 100644 --- a/src/parallel/bbs.cpp +++ b/src/parallel/bbs.cpp @@ -262,8 +262,6 @@ void BBSImpl::execute(int id) { // assumes a "_todo" message in receive buffer ++etaskcnt; double st, et; int userid; - char* s; - int i; int save_id = working_id_; int save_n = n_; working_id_ = id; @@ -359,7 +357,7 @@ bool BBSImpl::working(int& id, double& x, int& userid) { } if (id != 0) { userid = upkint(); - int wid = upkint(); + /* int wid = */ upkint(); rtype = upkint(); if (rtype == 0) { x = upkdouble(); diff --git a/src/parallel/bbsclimpi.cpp b/src/parallel/bbsclimpi.cpp index 340b8cb3bc..ba5d78030d 100644 --- a/src/parallel/bbsclimpi.cpp +++ b/src/parallel/bbsclimpi.cpp @@ -211,7 +211,6 @@ bool BBSClient::look(const char* key) { } void BBSClient::take(const char* key) { // blocking - int bufid; get(key, TAKE); upkbegin(); } @@ -300,9 +299,6 @@ void BBSClient::done() { } void BBSClient::start() { - char* client = 0; - int tid; - int n; if (started_) { return; } diff --git a/src/parallel/bbslsrv.cpp b/src/parallel/bbslsrv.cpp index 1d6092508c..b51255238e 100644 --- a/src/parallel/bbslsrv.cpp +++ b/src/parallel/bbslsrv.cpp @@ -126,7 +126,6 @@ int MessageValue::upkint(int* i) { } int MessageValue::upkdouble(double* d) { - const auto& mi = args_.front(); if (const auto* val = std::get_if(args_.data() + index_)) { *d = *val; ++index_; @@ -136,7 +135,6 @@ int MessageValue::upkdouble(double* d) { } int MessageValue::upkvec(int n, double* d) { - const auto& mi = args_.front(); if (const auto* val = std::get_if>(args_.data() + index_)) { for (std::size_t i = 0; i < n; ++i) { d[i] = val->at(i); @@ -148,7 +146,6 @@ int MessageValue::upkvec(int n, double* d) { } int MessageValue::upkstr(char* s) { - const auto& mi = args_.front(); if (const auto* val = std::get_if(args_.data() + index_)) { for (std::size_t i = 0; i < val->size(); ++i) { s[i] = val->at(i); @@ -161,7 +158,6 @@ int MessageValue::upkstr(char* s) { } int MessageValue::upkpickle(std::vector& s) { - const auto& mi = args_.front(); if (const auto* val = std::get_if>(args_.data() + index_)) { s = *val; ++index_; @@ -225,7 +221,7 @@ bool BBSLocalServer::look(const char* key, MessageValue** val) { } void BBSLocalServer::post(const char* key, MessageValue* val) { - MessageList::iterator m = messages_->emplace(newstr(key), val); + messages_->emplace(newstr(key), val); Resource::ref(val); #if debug printf("srvr_post |%s|\n", key); diff --git a/src/parallel/bbssrv2mpi.cpp b/src/parallel/bbssrv2mpi.cpp index 1d2d4b6822..b07c9c5629 100644 --- a/src/parallel/bbssrv2mpi.cpp +++ b/src/parallel/bbssrv2mpi.cpp @@ -196,7 +196,7 @@ void BBSDirectServer::post(const char* key, bbsmpibuf* send) { if (take_pending(key, &cid)) { nrnmpi_bbssend(cid, TAKE, send); } else { - MessageList::iterator m = messages_->emplace(newstr(key), send); + messages_->emplace(newstr(key), send); nrnmpi_ref(send); } } diff --git a/src/parallel/ocbbs.cpp b/src/parallel/ocbbs.cpp index 2091a345e4..cafdb082cc 100644 --- a/src/parallel/ocbbs.cpp +++ b/src/parallel/ocbbs.cpp @@ -577,7 +577,6 @@ static double multisplit(void* v) { Section* sec = NULL; int sid = -1; int backbone_style = 2; - int reducedtree_host = 0; if (ifarg(1)) { nrn_seg_or_x_arg(1, &sec, &x); sid = (int) chkarg(2, 0, (double) (0x7fffffff)); @@ -1424,11 +1423,10 @@ void BBSImpl::return_args(int id) { // perhaps it would be better to do this directly // and avoid the meaningless create and delete. // but then they all would have to know this format - int i; char* s; // printf("BBSImpl::return_args(%d):\n", id); - i = upkint(); // userid - int wid = upkint(); + upkint(); // userid + /* int wid = */ upkint(); int style = upkint(); // printf("message userid=%d style=%d\n", i, style); switch (style) { @@ -1439,19 +1437,19 @@ void BBSImpl::return_args(int id) { break; case 2: // obj first s = upkstr(); // template name - i = upkint(); // instance index + upkint(); // instance index // printf("object %s[%d]\n", s, i); delete[] s; // fall through case 1: s = upkstr(); // fname - i = upkint(); // arg manifest + upkint(); // arg manifest // printf("fname=|%s| manifest=%o\n", s, i); delete[] s; break; case 3: auto pickle = upkpickle(); // pickled callable - i = upkint(); // arg manifest + upkint(); // arg manifest break; } // now only args are left and ready to unpack.