Skip to content
Snippets Groups Projects
Commit f2a50c3e authored by Danilo Piparo's avatar Danilo Piparo
Browse files

Remove warning

parent a6e96ce5
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment