From 04eee3cb89e3225b58092b250b7619f9c601a4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Wed, 3 Feb 2021 08:51:51 +0100 Subject: [PATCH] #1173: fix codacy warning --- src/vt/vrt/context/context_vrtinfo.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vt/vrt/context/context_vrtinfo.cc b/src/vt/vrt/context/context_vrtinfo.cc index e5ab2af679..4c47c931a2 100644 --- a/src/vt/vrt/context/context_vrtinfo.cc +++ b/src/vt/vrt/context/context_vrtinfo.cc @@ -111,7 +111,7 @@ bool VirtualInfo::enqueueWorkUnit(VirtualMessage* raw_msg) { bool const has_workers = theContext()->hasWorkers(); - if (has_workers and vt_threading_enabled) { + if (has_workers) { #if vt_threading_enabled bool const execute_comm = msg->getExecuteCommThread(); if (hasCoreMap() && !execute_comm) { @@ -120,6 +120,8 @@ bool VirtualInfo::enqueueWorkUnit(VirtualMessage* raw_msg) { } else { theWorkerGrp()->enqueueCommThread(work_unit); } + #else + work_unit(); #endif return true; } else {