From bbd5d60e90704e8620ac0f1697fc48d697d86d8b Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Tue, 10 Sep 2019 18:03:31 +0100 Subject: [PATCH] Keep compilers happy when mpiuse_log_allocation is defined away --- src/task.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/task.c b/src/task.c index 906b79aa76..2b4a5e74c9 100644 --- a/src/task.c +++ b/src/task.c @@ -555,7 +555,9 @@ int task_lock(struct task *t) { } /* And log deactivation, if logging enabled. */ - if (res) mpiuse_log_allocation(t->type, t->subtype, &t->req, 0, 0, 0, 0); + if (res) { + mpiuse_log_allocation(t->type, t->subtype, &t->req, 0, 0, 0, 0); + } return res; #else -- GitLab