From f2a50c3eabdf478d01cdba7179cd81f208200412 Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Wed, 14 Dec 2016 17:08:59 +0100 Subject: [PATCH] Remove warning --- interpreter/cling/lib/MetaProcessor/MetaProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/cling/lib/MetaProcessor/MetaProcessor.cpp b/interpreter/cling/lib/MetaProcessor/MetaProcessor.cpp index 84cc30ac46d..d6327dd5458 100644 --- a/interpreter/cling/lib/MetaProcessor/MetaProcessor.cpp +++ b/interpreter/cling/lib/MetaProcessor/MetaProcessor.cpp @@ -137,7 +137,7 @@ namespace cling { // Restore stdstream from backup and close the backup void close(int oldfd, int newfd) { - assert(newfd == STDOUT_FILENO || newfd == STDERR_FILENO && "Not std FD"); + assert(newfd == STDOUT_FILENO || (newfd == STDERR_FILENO && "Not std FD")); assert(oldfd == m_Bak[newfd == STDERR_FILENO] && "Not backup FD"); if (oldfd != kInvalidFD) { dup2(oldfd, newfd, "RedirectOutput::close"); -- GitLab